Skip to content

Commit

Permalink
Merge pull request #176 from River-sh/feature/public_ip_api
Browse files Browse the repository at this point in the history
Added API option to obtain local public IP
  • Loading branch information
njucjc authored Nov 8, 2024
2 parents e7f76bd + 404501c commit a27a77e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/utils/public_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import (

var (
APIs = [...]string{
"https://ifconfig.me",
"https://icanhazip.com",
"https://ipinfo.io/json",
"https://api.ipify.org",
"https://api.my-ip.io/ip",
"https://ip4.seeip.org",
Expand Down

0 comments on commit a27a77e

Please sign in to comment.