fixed error when active tunnel is deleted,

now also the Address Label is emptied
This commit is contained in:
2024-08-23 10:07:38 +02:00
parent 357cae2d2a
commit b6555974ea
4 changed files with 19 additions and 16 deletions

View File

@ -187,11 +187,8 @@ class ImportTunnel:
wg_read = os.environ['HOME'] + '/tester/' + str(self.a) + '.conf'
file = open(wg_read, 'r')
data = ConToDict.covert_to_dict(file)
self.add = tk.StringVar()
self.add.set('Address: ' + data[0])
self.DNS = tk.StringVar()
self.DNS.set(' DNS: ' + data[1])
self.enp = tk.StringVar()
self.enp.set('Endpoint: ' + data[2])
ShowAddress.show_data(self)
file.close()