diff options
Diffstat (limited to 'src/ssh.go')
-rw-r--r-- | src/ssh.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ssh.go b/src/ssh.go index 71dc12a..3eb426b 100644 --- a/src/ssh.go +++ b/src/ssh.go @@ -15,7 +15,7 @@ import ( func handlePass(ctx ssh.Context, pass string) bool { // increase the counter tracking the amount of passwords catched - metrics_num_passwords++ + metricsNumPasswords++ log.Printf("%s@%s: '%s'", ctx.User(), ctx.RemoteAddr().String(), pass) // get the ip of the remote user @@ -51,10 +51,10 @@ func handlePass(ctx ssh.Context, pass string) bool { // if an entry for the city does not exists yet, create the city // if the city does allready exist, increase it's value by one - if metrics_city_num[result.City] == 0 { - metrics_city_num[result.City] = 1 + if metricsCityNum[result.City] == 0 { + metricsCityNum[result.City] = 1 } else { - metrics_city_num[result.City] += 1 + metricsCityNum[result.City] += 1 } // if the actual city is not known, create the city |