5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-26 10:41:40 +00:00

Remove sourceSubnet from router

This commit is contained in:
Neil Alexander 2018-11-06 00:06:37 +00:00
parent e3d4aed44a
commit 19e6aaf9f5
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -125,11 +125,9 @@ func (r *router) sendPacket(bs []byte) {
panic("Tried to send a packet shorter than a header...") panic("Tried to send a packet shorter than a header...")
} }
var sourceAddr address var sourceAddr address
var sourceSubnet subnet
var dest address var dest address
var snet subnet var snet subnet
copy(sourceAddr[:], bs[8:]) copy(sourceAddr[:], bs[8:])
copy(sourceSubnet[:], bs[8:])
if !r.cryptokey.isValidSource(sourceAddr) { if !r.cryptokey.isValidSource(sourceAddr) {
return return
} }