Skip to content

Commit

Permalink
Add optional peer name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiritow committed Sep 11, 2021
1 parent e73a8af commit 4174606
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wgop_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,14 @@
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...")
Expand Down

0 comments on commit 4174606

Please sign in to comment.