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