From 630f5395c89f10c607ea9e56c687eed35e60e99b Mon Sep 17 00:00:00 2001 From: SpaceVector <60949905+SpaceVector@users.noreply.github.com> Date: Mon, 24 Jul 2023 13:10:13 +0800 Subject: [PATCH] Update docker-entrypoint.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新检查公网ipv4地址的域名 --- dnf-server/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnf-server/docker-entrypoint.sh b/dnf-server/docker-entrypoint.sh index e7f71c7..38833d4 100644 --- a/dnf-server/docker-entrypoint.sh +++ b/dnf-server/docker-entrypoint.sh @@ -61,7 +61,7 @@ REP_MYSQL_IP=127.0.0.1 # 获取公网ip if $AUTO_PUBLIC_IP; then - PUBLIC_IP=`curl -s http://pv.sohu.com/cityjson?ie=utf-8|awk -F\" '{print $4}'` + PUBLIC_IP=`curl -s https://v4.ident.me'` echo "public ip: $PUBLIC_IP" echo sleep 5