clear code

This commit is contained in:
若海 committed 2022-11-25 06:32:02 +08:00
1 parent 8317b92d30
commit eb68c86e6a
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -96,4 +96,4 @@ echo "arDdnsCheck test.org subdomain" >> ./ardnspod
# 共同维护者 # 共同维护者
请参阅 <https://github.com/anrip/dnspod-shell/graphs/contributors> 请参阅 <https://github.com/rehiy/dnspod-shell/graphs/contributors>
+1 -3
View File
@@ -9,7 +9,7 @@
# Author: Rehiy, https://github.com/rehiy # Author: Rehiy, https://github.com/rehiy
# https://www.rehiy.com/?s=dnspod # https://www.rehiy.com/?s=dnspod
# #
# Collaborators: ProfFan, https://github.com/ProfFan # Collaborators: https://github.com/rehiy/dnspod-shell/graphs/contributors
# #
# Usage: please refer to `ddnspod.sh` # Usage: please refer to `ddnspod.sh`
# #
@@ -102,8 +102,6 @@ arWanIp4() {
local hostIp local hostIp
local lanIps=$(arLanIp4) local lanIps=$(arLanIp4)
local agent="AnripDdns/6.2.0(wang@rehiy.com)"
case $(uname) in case $(uname) in
'Linux') 'Linux')
hostIp=$(ip -o -4 route get 100.64.0.1 | grep -oE 'src [0-9\.]+' | awk '{print $2}' | grep -Ev "$lanIps") hostIp=$(ip -o -4 route get 100.64.0.1 | grep -oE 'src [0-9\.]+' | awk '{print $2}' | grep -Ev "$lanIps")