about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-01-27 21:23:55 +0100
committerEmile <hanemile@protonmail.com>2020-01-27 21:23:55 +0100
commit8f477f3f61588b2f53339e6cae06e47d03139a54 (patch)
tree5087fc7a59d205ae4241b356160c288f4f36ed63
parenta7ecd012679942145d5999e2752a6558b8b0b31a (diff)
using https
-rw-r--r--src/ssh.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssh.go b/src/ssh.go
index 3eb426b..2b45cd1 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", "http://ip-api.com/json/", stringip)
+	requestString := fmt.Sprintf("%s%s", "https://ip-api.com/json/", stringip)
 
 	// Send the GET request
 	resp, err := http.Get(requestString)