Skip to content

Commit

Permalink
change API Endpoint to get public IP
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-moser committed Nov 16, 2024
1 parent a1cee23 commit 39bc825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/standalone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 39bc825

Please sign in to comment.