Merge pull request #13 from future-architect/fix_index_out_of_range_when_7_servers

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:13:28 +09:00

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