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:
parent
0c3960d8d9
commit
19fb90a300
@ -66,6 +66,7 @@ def get_conf_peers_data(config_name):
|
||||
if len(file[i]) > 0:
|
||||
if file[i] != "[Interface]":
|
||||
tmp = file[i].replace(" ", "").split("=", 1)
|
||||
if len(tmp) == 2:
|
||||
conf_peer_data['Interface'][tmp[0]] = tmp[1]
|
||||
conf_peers = file[peers_start:]
|
||||
peer = -1
|
||||
|
Loading…
Reference in New Issue
Block a user