mirror of
https://github.com/safing/portmaster
synced 2025-09-04 11:39:29 +00:00
Fix linter errors
This commit is contained in:
parent
bd7d08960e
commit
d1430fe79d
3 changed files with 3 additions and 1 deletions
|
@ -41,6 +41,7 @@ func init() {
|
||||||
flag.BoolVar(&printStackOnExit, "print-stack-on-exit", false, "prints the stack before of shutting down")
|
flag.BoolVar(&printStackOnExit, "print-stack-on-exit", false, "prints the stack before of shutting down")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestHookFunc describes the functions passed to TestMainWithHooks.
|
||||||
type TestHookFunc func() error
|
type TestHookFunc func() error
|
||||||
|
|
||||||
// TestMain provides a simple unit test setup routine.
|
// TestMain provides a simple unit test setup routine.
|
||||||
|
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"github.com/safing/portbase/modules"
|
"github.com/safing/portbase/modules"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Event Names
|
||||||
const (
|
const (
|
||||||
NetworkChangedEvent = "network changed"
|
NetworkChangedEvent = "network changed"
|
||||||
OnlineStatusChangedEvent = "online status changed"
|
OnlineStatusChangedEvent = "online status changed"
|
||||||
|
|
|
@ -329,7 +329,7 @@ func checkOnlineStatus(ctx context.Context) {
|
||||||
// this might be a weird captive portal, just direct the user there
|
// this might be a weird captive portal, just direct the user there
|
||||||
updateOnlineStatus(StatusPortal, "detectportal.firefox.com", "http request succeeded, response content not as expected")
|
updateOnlineStatus(StatusPortal, "detectportal.firefox.com", "http request succeeded, response content not as expected")
|
||||||
}
|
}
|
||||||
// close the body now as we plan to re-uise the http.Client
|
// close the body now as we plan to reuse the http.Client
|
||||||
response.Body.Close()
|
response.Body.Close()
|
||||||
|
|
||||||
// 3) try a https request
|
// 3) try a https request
|
||||||
|
|
Loading…
Add table
Reference in a new issue