Fix undeclared variable
This commit is contained in:
parent
13c5e84d31
commit
c0a02d1194
|
@ -73,6 +73,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := range config.Servers {
|
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)
|
config.Servers[i].rconConnection, err = rcon.Dial(fmt.Sprintf("%v:%v", s.Host, s.RCONPort), s.RCONPassword)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error making RCON connection to %v: %v", s.Title, err)
|
log.Fatalf("Error making RCON connection to %v: %v", s.Title, err)
|
||||||
|
|
Loading…
Reference in a new issue