feat: better inbounds user management
This commit is contained in:
47 files changed
+6767
-78
No files matched your search
@@ -240,6 +240,9 @@ def render_server_config(listener: dict, state: dict) -> str:
|
||||
awg = listener["amneziaWg"]
|
||||
peers = []
|
||||
for user in listener["users"]:
|
||||
# Switched off by the manager: no peer, but the keys and address stay in the state.
|
||||
if user.get("active") is False:
|
||||
continue
|
||||
entry = state["users"][user["name"]]
|
||||
peer: dict[str, Any] = {
|
||||
"publicKey": entry["publicKey"],
|
||||
|
||||
Reference in new issue
Block a user