Fix index out of range error when the number of servers is over 6. #12

This commit is contained in:
kota kanbe
2016-04-08 02:07:02 +09:00
parent c62ca7c645
commit 6a6c7bf8a4

View File

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