Skip to content

Commit 4174606

Browse files
committed
Add optional peer name
1 parent e73a8af commit 4174606

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wgop_create.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,14 @@
203203
peer_endpoint = ""
204204
peer_keepalive = ""
205205

206+
peer_name = input("Enter Peer name (optional): ").strip() or ""
207+
206208
config["peers"].append({
207209
"pubkey": peer_pubk,
208210
"allowed": peer_allowed,
209211
"endpoint": peer_endpoint,
210-
"keepalive": peer_keepalive
212+
"keepalive": peer_keepalive,
213+
"name": peer_name,
211214
})
212215

213216
print("Saving config...")

0 commit comments

Comments
 (0)