1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

fix up wizard logic

This commit is contained in:
Jeff Becker 2018-07-25 14:34:28 +10:00
parent 10ee52a0cd
commit ae09edd3e6

View file

@ -26,13 +26,15 @@ def genconf(rootdir):
'dir': os.path.join(rootdir, 'netdb')
}
conf['bind'] = {}
found = False
for ifname, ip in yield_public_addresses():
conf['bind'][ifname] = '1090'
print("using public address {}".format(ip))
found = True
if found:
return conf
else:
print("we don't have any public addresses on this machine")
return
return conf
print("This machine has no public network addresses")
def main():
conf = genconf(os.path.realpath('.'))