Fix undeclared variable

This commit is contained in:
Chandler Swift 2020-03-29 22:23:04 -05:00
parent 13c5e84d31
commit c0a02d1194

View file

@ -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)