diff --git a/functions/connect.go b/functions/connect.go new file mode 100644 index 0000000..8d87d9e --- /dev/null +++ b/functions/connect.go @@ -0,0 +1,11 @@ +package functions + +import "net/http" + +var Connected = func() (ok bool) { + _, err := http.Get("http://clients3.google.com/generate_204") + if err != nil { + return false + } + return true +}