1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 15:20:09 +01:00

Update dashboard.py

This commit is contained in:
Donald Cheng Hong Zou 2021-04-03 14:10:07 -04:00
parent 0c3960d8d9
commit 19fb90a300

View File

@ -66,7 +66,8 @@ def get_conf_peers_data(config_name):
if len(file[i]) > 0:
if file[i] != "[Interface]":
tmp = file[i].replace(" ", "").split("=", 1)
conf_peer_data['Interface'][tmp[0]] = tmp[1]
if len(tmp) == 2:
conf_peer_data['Interface'][tmp[0]] = tmp[1]
conf_peers = file[peers_start:]
peer = -1
for i in conf_peers: