radvd: skip advertisments when no prefixes are configured
This commit is contained in:
parent
6782668f23
commit
4baac19e13
@ -153,6 +153,9 @@ func (o rdnss) Marshal() layers.ICMPv6Option {
|
||||
}
|
||||
|
||||
func (s *Server) sendAdvertisement(addr net.Addr) error {
|
||||
if s.prefixes == nil {
|
||||
return nil // nothing to do
|
||||
}
|
||||
if addr == nil {
|
||||
addr = &net.IPAddr{net.IPv6linklocalallnodes, s.iface.Name}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user