Unbreak running without a captive portal configuration file
This commit is contained in:
parent
5843e49188
commit
60d4c98f31
|
@ -14,7 +14,9 @@ func NetProbe(proxy *Proxy, address string, timeout int) error {
|
|||
return nil
|
||||
}
|
||||
if captivePortalHandler, err := ColdStart(proxy); err == nil {
|
||||
defer captivePortalHandler.Stop()
|
||||
if captivePortalHandler != nil {
|
||||
defer captivePortalHandler.Stop()
|
||||
}
|
||||
} else {
|
||||
dlog.Critical(err)
|
||||
}
|
||||
|
|
|
@ -12,7 +12,9 @@ func NetProbe(proxy *Proxy, address string, timeout int) error {
|
|||
return nil
|
||||
}
|
||||
if captivePortalHandler, err := ColdStart(proxy); err == nil {
|
||||
defer captivePortalHandler.Stop()
|
||||
if captivePortalHandler != nil {
|
||||
defer captivePortalHandler.Stop()
|
||||
}
|
||||
} else {
|
||||
dlog.Critical(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue