From 4174606921cd87d36a1631c400251fee5dccf8f0 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Sat, 11 Sep 2021 10:49:14 +0000 Subject: [PATCH] Add optional peer name --- wgop_create.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wgop_create.py b/wgop_create.py index f22455c..e254a18 100644 --- a/wgop_create.py +++ b/wgop_create.py @@ -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...")