mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03: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:
parent
f929df1ea9
commit
502ab3cfaa
2 changed files with 9 additions and 8 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue