From 39bc825a19217d60f094d685ad7aa0b7fe2b5e5f Mon Sep 17 00:00:00 2001 From: Robin Moser Date: Sat, 16 Nov 2024 14:25:15 +0100 Subject: [PATCH] change API Endpoint to get public IP --- docker/standalone/Dockerfile | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/standalone/Dockerfile b/docker/standalone/Dockerfile index fa9bc4c..c2dd26b 100644 --- a/docker/standalone/Dockerfile +++ b/docker/standalone/Dockerfile @@ -2,7 +2,7 @@ # Dockerfile: robinmoser/bugspider:latest # +++++++++++++++++++++++++++++++++++++++++ -FROM golang:1.15-alpine as build +FROM golang:1.20-alpine as build # downlaod latest ca-certificates for in-app ssl validation RUN apk --no-cache add ca-certificates diff --git a/main.go b/main.go index 835b669..18e267f 100644 --- a/main.go +++ b/main.go @@ -101,7 +101,7 @@ func main() { if os.Args[1] == "worker" { - body, _, _ := request.GetResponseBody("https://api4.my-ip.io/ip", false) + body, _, _ := request.GetResponseBody("https://api4.ipify.org", false) fmt.Printf("Starting bugspider with following public IP: %v\n", string(body)) if len(os.Args) >= 3 {