Add support for empty private key warnings and relevant translations

This commit is contained in:
Eduardo Silva
2025-08-12 11:11:53 -03:00
parent e34c4007e4
commit 1f87e0bf25
12 changed files with 160 additions and 83 deletions

View File

@@ -48,7 +48,7 @@ def generate_peer_config(peer_uuid):
config_lines = [
"[Interface]",
f"PrivateKey = {peer.private_key}" if peer.private_key else "",
f"PrivateKey = {peer.private_key}",
f"Address = {client_address}",
f"DNS = {dns_line}" if dns_line else "",
"\n[Peer]",