4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-09-18 12:12:30 +00:00

Update comments in configuration and some godoc descriptions

This commit is contained in:
Neil Alexander
2018-11-06 22:57:53 +00:00
parent a3a53f92c3
commit 39dab53ac7
3 changed files with 23 additions and 8 deletions

View File

@@ -140,6 +140,7 @@ func (r *router) sendPacket(bs []byte) {
copy(sourceAddr[:addrlen], bs[12:])
copy(dest[:addrlen], bs[16:])
} else {
// Unknown address length
return
}
if !r.cryptokey.isValidSource(sourceAddr, addrlen) {
@@ -287,6 +288,7 @@ func (r *router) recvPacket(bs []byte, sinfo *sessionInfo) {
copy(sourceAddr[:addrlen], bs[12:])
copy(dest[:addrlen], bs[16:])
} else {
// Unknown address length
return
}
if !r.cryptokey.isValidSource(dest, addrlen) {