mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-09-18 13:22:30 +00:00
check that the source IP inside a packet matches the address or prefix for the session that transmitted it
This commit is contained in:
@@ -373,5 +373,5 @@ func (sinfo *sessionInfo) doRecv(p *wire_trafficPacket) {
|
||||
}
|
||||
sinfo.updateNonce(&p.nonce)
|
||||
sinfo.time = time.Now()
|
||||
sinfo.core.router.recvPacket(bs, &sinfo.theirAddr)
|
||||
sinfo.core.router.recvPacket(bs, &sinfo.theirAddr, &sinfo.theirSubnet)
|
||||
}
|
||||
|
Reference in New Issue
Block a user