fix: endpoints should be optional

closes #808
This commit is contained in:
Zane Schepke
2025-10-24 02:00:52 -04:00
parent 0f365e2ef8
commit 170b12ab79
@@ -17,7 +17,7 @@ data class PeerProxy(
parsePublicKey(publicKey)
if (preSharedKey.isNotBlank()) parsePreSharedKey(preSharedKey)
if (persistentKeepalive.isNotBlank()) parsePersistentKeepalive(persistentKeepalive)
parseEndpoint(endpoint)
if (endpoint.isNotBlank()) parseEndpoint(endpoint)
parseAllowedIPs(allowedIps)
}
.build()
@@ -29,7 +29,7 @@ data class PeerProxy(
parsePublicKey(publicKey)
if (preSharedKey.isNotBlank()) parsePreSharedKey(preSharedKey)
if (persistentKeepalive.isNotBlank()) parsePersistentKeepalive(persistentKeepalive)
parseEndpoint(endpoint)
if (endpoint.isNotBlank()) parseEndpoint(endpoint)
parseAllowedIPs(allowedIps)
}
.build()