Fix index out of range error when the number of servers is over 6. #12
This commit is contained in:
@@ -86,7 +86,7 @@ func (c TOMLLoader) Load(pathToToml string) (err error) {
|
||||
s.CpeNames = d.CpeNames
|
||||
}
|
||||
|
||||
s.LogMsgAnsiColor = Colors[i%len(conf.Servers)]
|
||||
s.LogMsgAnsiColor = Colors[i%len(Colors)]
|
||||
i++
|
||||
|
||||
servers[name] = s
|
||||
|
||||
Reference in New Issue
Block a user