StarlioX/utils/connect.go

11 lines
176 B
Go

package utils
import "net/http"
func Connected() (ok bool) {
_, err := http.Get("http://clients3.google.com/generate_204")
if err != nil {
return false
}
return true
}