Skip to content

Commit

Permalink
Поправил адрес получения публичного IP на amazonaws
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Aug 7, 2024
1 parent daafbb5 commit 3843ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/System/RootFS/etc/profile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fi

# Set aliases
alias ls='ls --color=auto';
alias myip="curl http://ipecho.net/plain; echo";
alias myip="/usr/bin/curl https://checkip.amazonaws.com";
alias remount-offload="_remountOffload";
alias check-file-connection="_checkFileConnection";
alias ps='ps -A -f';
Expand Down
2 changes: 1 addition & 1 deletion src/Core/System/RootFS/sbin/check-out-ip
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ "$needCheckOutAddress" != '1' ]; then
exit 0;
fi;

outIp="$(/usr/bin/curl https://ipecho.net/plain 2> /dev/null)";
outIp="$(/usr/bin/curl https://checkip.amazonaws.com 2> /dev/null)";
result="$?";
if [ "$result" != '0' ]; then
echo 'Error getting an IP address';
Expand Down

0 comments on commit 3843ed8

Please sign in to comment.