1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-09-28 15:50:12 +02:00

Update dashboard.py

This commit is contained in:
tonjo 2021-04-09 11:15:25 +02:00 committed by GitHub
parent 9021ca31af
commit d5462df4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ def get_conf_peers_data(config_name):
# Get allowed ip
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):
get_conf_peers_data(config_name)