From a2a44481bcdb8b0a7bf15996dc05280a9a48f2ea Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 30 Jan 2020 14:52:20 +0100 Subject: updated the geoip provider (https is no longer useable) --- src/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssh.go b/src/ssh.go index 2b45cd1..3eb426b 100644 --- a/src/ssh.go +++ b/src/ssh.go @@ -22,7 +22,7 @@ func handlePass(ctx ssh.Context, pass string) bool { stringip := strings.Split(ctx.RemoteAddr().String(), ":")[0] // Define the request string for the geoip service - requestString := fmt.Sprintf("%s%s", "https://ip-api.com/json/", stringip) + requestString := fmt.Sprintf("%s%s", "http://ip-api.com/json/", stringip) // Send the GET request resp, err := http.Get(requestString) -- cgit 1.4.1