From 33cb1e23dbef960aac98cc9c4f545b1f0b10267a Mon Sep 17 00:00:00 2001 From: Redume Date: Sun, 18 Sep 2022 19:28:29 +0300 Subject: [PATCH] for error 502 --- functions/connect.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 functions/connect.go 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 +}