diff options
author | Emile <hanemile@protonmail.com> | 2020-01-27 20:49:30 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-01-27 20:49:30 +0100 |
commit | 932efbc49ad77594610616c56099c1da703a952d (patch) | |
tree | 6e1e24c2295c534e890ccf6aa9726ebe3b2ec081 /src/ssh.go | |
parent | 71bcc1bac69963fd4d016f9eac33b41b7c3e4fb2 (diff) |
snake_case → camelCase
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 |