mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 06:46:10 +01:00
bug fix: remote transfer
This commit is contained in:
@@ -1204,6 +1204,13 @@ class BackupManager:
|
|||||||
port = output.strip('\n')
|
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")
|
ipFile = os.path.join("/etc", "cyberpanel", "machineIP")
|
||||||
f = open(ipFile)
|
f = open(ipFile)
|
||||||
ownIP = f.read()
|
ownIP = f.read()
|
||||||
|
|||||||
Reference in New Issue
Block a user