Add optional peer name

This commit is contained in:
Kirigaya Kazuto 2021-09-11 10:49:14 +00:00
parent e73a8af70c
commit 4174606921

View File

@ -203,11 +203,14 @@ while True:
peer_endpoint = ""
peer_keepalive = ""
peer_name = input("Enter Peer name (optional): ").strip() or ""
config["peers"].append({
"pubkey": peer_pubk,
"allowed": peer_allowed,
"endpoint": peer_endpoint,
"keepalive": peer_keepalive
"keepalive": peer_keepalive,
"name": peer_name,
})
print("Saving config...")