From c0a02d11949659eae28acbd9e45bbc5f1ef09fe2 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Sun, 29 Mar 2020 22:23:04 -0500 Subject: [PATCH] Fix undeclared variable --- factorio-site.go | 1 + 1 file changed, 1 insertion(+) diff --git a/factorio-site.go b/factorio-site.go index a05448e..d2e49b0 100644 --- a/factorio-site.go +++ b/factorio-site.go @@ -73,6 +73,7 @@ func main() { } for i := range config.Servers { + s := config.Servers[i] config.Servers[i].rconConnection, err = rcon.Dial(fmt.Sprintf("%v:%v", s.Host, s.RCONPort), s.RCONPassword) if err != nil { log.Fatalf("Error making RCON connection to %v: %v", s.Title, err)