mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-11 04:06:14 +08:00
17 lines
215 B
Go
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
|
|
}
|