Skip to content

Commit 0f90ecd

Browse files
committed
fix installing from backup
1 parent 5aae008 commit 0f90ecd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mytoninstaller/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,9 +945,12 @@ def ConfigureFromBackup(local):
945945
backup_file = local.buffer.backup
946946

947947
os.makedirs(local.buffer.ton_work_dir, exist_ok=True)
948-
BackupModule.run_restore_backup(["-m", mconfig_dir, "-n", backup_file])
948+
if not local.buffer.only_mtc:
949+
ip = str(ip2int(get_own_ip()))
950+
BackupModule.run_restore_backup(["-m", mconfig_dir, "-n", backup_file, "-i", ip])
949951

950952
if local.buffer.only_mtc:
953+
BackupModule.run_restore_backup(["-m", mconfig_dir, "-n", backup_file])
951954
local.add_log("Installing only mtc", "info")
952955
vconfig_path = local.buffer.vconfig_path
953956
vconfig = GetConfig(path=vconfig_path)

0 commit comments

Comments
 (0)