Skip default port send in signal proto

This commit is contained in:
riccardom
2026-09-11 14:48:54 +02:00
parent cfaf4f1bab
commit b93e8d6676
4 changed files with 32 additions and 13 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ type PQHandshaker interface {
// peer-config time (the pull path). ok is false until one has been derived.
PSK(remoteKey string) (wgtypes.Key, bool)
// SetRemoteAddr registers the peer's data-path endpoint learned from signalling:
// its WG overlay IP with the advertised pq UDP port.
// its WG overlay IP with the announced pq UDP port (port 0 means the peer omitted
// it and is on the default port).
SetRemoteAddr(remoteKey string, addr netip.AddrPort)
// OnDataPathRekeyed signals a fresh WireGuard handshake for the peer; it clocks the
// next chained PSK rotation pushed over the data path. sinceActivity is how long