2023-03-18 16:40:05 +03:00
|
|
|
package utils
|
2022-09-18 19:28:29 +03:00
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
2022-09-21 10:47:49 +03:00
|
|
|
func Connected() (ok bool) {
|
2022-09-18 19:28:29 +03:00
|
|
|
_, err := http.Get("http://clients3.google.com/generate_204")
|
|
|
|
if err != nil {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
return true
|
|
|
|
}
|