mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-09 06:35:23 +08:00
udpate ip service
This commit is contained in:
parent
ded348a320
commit
b17b200581
1 changed files with 2 additions and 2 deletions
|
@ -501,8 +501,8 @@ set -e
|
||||||
# set_install_vars - sets the variables that will be used throughout installation
|
# set_install_vars - sets the variables that will be used throughout installation
|
||||||
set_install_vars() {
|
set_install_vars() {
|
||||||
|
|
||||||
IP_ADDR=$(curl -s -4 ifconfig.me || echo "")
|
IP_ADDR=$(curl -s -4 api64.ipify.org || echo "")
|
||||||
IP6_ADDR=$(curl -s -6 ifconfig.me || echo "")
|
IP6_ADDR=$(curl -s -6 api64.ipify.org || echo "")
|
||||||
if [ "$NETMAKER_BASE_DOMAIN" = "" ]; then
|
if [ "$NETMAKER_BASE_DOMAIN" = "" ]; then
|
||||||
NETMAKER_BASE_DOMAIN=nm.$(echo $IP_ADDR | tr . -).nip.io
|
NETMAKER_BASE_DOMAIN=nm.$(echo $IP_ADDR | tr . -).nip.io
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue