mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-16 12:30:12 +01:00
Update dashboard.py
This commit is contained in:
parent
9021ca31af
commit
d5462df4da
@ -166,7 +166,7 @@ def get_conf_peers_data(config_name):
|
|||||||
|
|
||||||
# Get allowed ip
|
# Get allowed ip
|
||||||
for i in conf_peer_data["Peers"]:
|
for i in conf_peer_data["Peers"]:
|
||||||
db.update({"allowed_ip":i.get('AllowedIPs', None)}, peers.id == i["PublicKey"])
|
db.update({"allowed_ip":i.get('AllowedIPs', '(None)')}, peers.id == i["PublicKey"])
|
||||||
|
|
||||||
def getdb(config_name):
|
def getdb(config_name):
|
||||||
get_conf_peers_data(config_name)
|
get_conf_peers_data(config_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user