Skip to content

Commit

Permalink
Merge pull request #13 from future-architect/fix_index_out_of_range_w…
Browse files Browse the repository at this point in the history
…hen_7_servers

Fix index out of range error when the number of servers is over 6. #12
  • Loading branch information
kotakanbe committed Apr 7, 2016
2 parents c62ca7c + 6a6c7bf commit c465fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/tomlloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c465fae

Please sign in to comment.