mirror of
https://github.com/Kiritow/wg-ops.git
synced 2024-03-22 13:11:37 +08:00
Add optional peer name
This commit is contained in:
parent
e73a8af70c
commit
4174606921
|
@ -203,11 +203,14 @@ while True:
|
||||||
peer_endpoint = ""
|
peer_endpoint = ""
|
||||||
peer_keepalive = ""
|
peer_keepalive = ""
|
||||||
|
|
||||||
|
peer_name = input("Enter Peer name (optional): ").strip() or ""
|
||||||
|
|
||||||
config["peers"].append({
|
config["peers"].append({
|
||||||
"pubkey": peer_pubk,
|
"pubkey": peer_pubk,
|
||||||
"allowed": peer_allowed,
|
"allowed": peer_allowed,
|
||||||
"endpoint": peer_endpoint,
|
"endpoint": peer_endpoint,
|
||||||
"keepalive": peer_keepalive
|
"keepalive": peer_keepalive,
|
||||||
|
"name": peer_name,
|
||||||
})
|
})
|
||||||
|
|
||||||
print("Saving config...")
|
print("Saving config...")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user