Skip to content
Snippets Groups Projects
Commit aee4a535 authored by Jonah Husson's avatar Jonah Husson
Browse files

Use https/options

parent 4841e463
No related branches found
No related tags found
2 merge requests!61Hotfix/fix is online,!39Merge release into master
......@@ -204,8 +204,8 @@ func (wc *webConn) isOnlineHelper(addr string, pingTimeout time.Duration) (time.
Transport: tr,
Timeout: pingTimeout,
}
target := "http://" + addr
req, err := http.NewRequest(http.MethodGet, target, nil)
target := "https://" + addr
req, err := http.NewRequest(http.MethodOptions, target, nil)
if err != nil {
jww.WARN.Printf("Failed to initiate request: %+v", err)
return time.Since(start), false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment