mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Kind of finished revamping add peers
Still need to clean some of the codes but overall is good :)
This commit is contained in:
@@ -1240,7 +1240,7 @@ def add_peer(config_name):
|
||||
return "Please fill in all required box."
|
||||
if not isinstance(keys, list):
|
||||
return config_name + " is not running."
|
||||
if public_key in keys:
|
||||
if public_key in keys:d;lp
|
||||
return "Public key already exist."
|
||||
check_dup_ip = g.cur.execute(
|
||||
"SELECT COUNT(*) FROM " + config_name + " WHERE allowed_ip LIKE '" + allowed_ips + "/%'", ) \
|
||||
|
Reference in New Issue
Block a user