This commit is contained in:
jonas 2021-10-25 10:33:09 +02:00
parent bec450fc7f
commit dd41e01281

View File

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