Skip to content

Commit 6f6e592

Browse files
committed
Ignore IP check, if it fails during install.
1 parent 909f983 commit 6f6e592

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

install.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,14 @@ def install(self, config_dir: str, user: str, database: str):
396396
]) + 1 if nodes else 10042,
397397
"use_upnp": self.use_upnp
398398
}
399-
public_ip = asyncio.run(utils.get_public_ip())
400-
if Confirm.ask(_("Is {} a static IP-address for this node?").format(public_ip), default=False):
401-
node['public_ip'] = public_ip
399+
# read public IP, if possible
400+
try:
401+
public_ip = asyncio.run(utils.get_public_ip())
402+
if Confirm.ask(_("Is {} a static IP-address for this node?").format(public_ip), default=False):
403+
node['public_ip'] = public_ip
404+
except TimeoutError:
405+
pass
406+
402407
if 'database' not in main:
403408
node["database"] = {
404409
"url": database_url

0 commit comments

Comments
 (0)