mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-05 06:03:57 +03:00
for error 502
This commit is contained in:
parent
253988c4eb
commit
33cb1e23db
1 changed files with 11 additions and 0 deletions
11
functions/connect.go
Normal file
11
functions/connect.go
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue