1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-11 04:06:14 +08:00
Files
WireGold/gold/link/router.go
2021-10-25 01:01:22 +08:00

17 lines
215 B
Go

package link
import "net"
func (l *Link) Accept(ip net.IP) bool {
for _, cidr := range l.allowedips {
if cidr.Contains(ip) {
return true
}
}
return false
}
func NextHop(ip net.IP) *Link {
return nil
}