Merge branch 'main' of ssh://gitea.rre.nu:3022/jonas/tle

This commit is contained in:
Jonas Forsberg 2021-10-25 10:33:41 +02:00
commit 52e88252dd
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -62,13 +62,13 @@ class Main:
print(config)
try:
self.lan_nic = localconfig["network"]["interface"]["bridge"]
self.lan_nic = localconfig["network"]["bridge"]
except KeyError:
self.lan_nic = config["network"]["interface"]["bridge"]
self.lan_nic = config["network"]["bridge"]
try:
self.wan_nic = localconfig["network"]["interface"]["external"]
self.wan_nic = localconfig["network"]["external"]
except KeyError:
self.wan_nic = config["network"]["interface"]["external"]
self.wan_nic = config["network"]["external"]
self.builder.get_object("lbl_wan").set_text(f"wan ({self.wan_nic})")
self.builder.get_object("lbl_lan").set_text(f"lan ({self.lan_nic})")