Skip to content

Commit

Permalink
Add icanhazip.com as IP source (#1207)
Browse files Browse the repository at this point in the history
Add icanhazip.com as an alternative. Both ipinfo and checkip are sometimes inaccessible from certain areas.
  • Loading branch information
aaomidi committed Oct 24, 2022
1 parent 7a2007b commit 6ea0c1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server_manager/install_scripts/install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ function set_hostname() {
# We have more than one to try in case one starts failing
# (e.g. https://github.com/Jigsaw-Code/outline-server/issues/776).
local -ar urls=(
'https://icanhazip.com/'
'https://ipinfo.io/ip'
'https://domains.google.com/checkip'
)
Expand Down

1 comment on commit 6ea0c1d

@bardia13s
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi Amir what the command is for update this script ?

Please sign in to comment.