mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Warn on failed dns server shutdown instead of returning an error
This commit is contained in:
parent
0b79173269
commit
9b58046617
1 changed files with 3 additions and 1 deletions
|
@ -126,7 +126,9 @@ func startListener(ip net.IP, port uint16) *dns.Server {
|
||||||
|
|
||||||
func stop() error {
|
func stop() error {
|
||||||
if stopListener != nil {
|
if stopListener != nil {
|
||||||
return stopListener()
|
if err := stopListener(); err != nil {
|
||||||
|
log.Warningf("nameserver: failed to stop: %s", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue