WIP
This commit is contained in:
@@ -37,7 +37,8 @@ func (a *App) onMulticastDiscovery(e MulticastEvent) {
|
||||
return
|
||||
}
|
||||
|
||||
// payload: [1 VPN IP byte][32 WG pubkey][2 WG port]
|
||||
// payload: [1 VPN IP byte][32 WG pubkey][2 WG port][8 timestamp]
|
||||
// (timestamp freshness is gated in the reader before this point).
|
||||
wgPubKey, err := wgtypes.NewKey(payload[1:33])
|
||||
if err != nil || wgPubKey != peer.PubKey() {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user