mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
bug fix: remote transfer
This commit is contained in:
@@ -1204,6 +1204,13 @@ class BackupManager:
|
||||
port = output.strip('\n')
|
||||
|
||||
|
||||
### if value of port return empty then int function fails which means port is not set so defaults to 22
|
||||
try:
|
||||
portT = int(port)
|
||||
except:
|
||||
port = '22'
|
||||
|
||||
|
||||
ipFile = os.path.join("/etc", "cyberpanel", "machineIP")
|
||||
f = open(ipFile)
|
||||
ownIP = f.read()
|
||||
|
||||
Reference in New Issue
Block a user