mirror of
https://github.com/popura-network/Popura.git
synced 2024-12-06 19:26:23 +01:00
Remove IP address only when Radv is configured
This commit is contained in:
+5
-2
@@ -198,9 +198,12 @@ func (s *RAdv) Stop() error {
|
||||
s.conn.Close()
|
||||
}
|
||||
|
||||
if err := s.removeGatewayIP(); err != nil {
|
||||
s.log.Errorln(err)
|
||||
if s.config.Enable && s.config.SetGatewayIP {
|
||||
if err := s.removeGatewayIP(); err != nil {
|
||||
s.log.Errorln(err)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user