about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-01-30 14:52:20 +0100
committerEmile <hanemile@protonmail.com>2020-01-30 14:52:20 +0100
commita2a44481bcdb8b0a7bf15996dc05280a9a48f2ea (patch)
tree5bfde5c3b1d91181474e35494409bdb672f0c293
parent0b48f457b4a0b2c9fa7ceb9fc10224baf8c0cbb1 (diff)
updated the geoip provider (https is no longer useable)
-rw-r--r--src/ssh.go2
1 files changed, 1 insertions, 1 deletions
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)