无需检测全局变量

This commit is contained in:
若海 committed 2022-11-24 23:37:50 +08:00
1 parent df98840ad3
commit 8317b92d30
1 file changed
+8 -9
+8 -9
View File
@@ -19,23 +19,22 @@ export arToken
# The url to be used for querying public ipv6 address. We set a default here.
if [ -z "$arIp6QueryUrl" ]; then
arIp6QueryUrl="http://ipv6.rpc.im/ip"
fi
export arIp6QueryUrl="http://ipv6.rpc.im/ip"
# The error code to return when a ddns record is not changed
# By default, report unchanged event as success
if [ -z "$arErrCodeUnchanged" ]; then
arErrCodeUnchanged=0 # By default, report unchanged event as success
fi
export arErrCodeUnchanged=0
# Define arLog to output to stderr, if not defined in ddnspod.sh
################################################################### logger ##
# Output log to stderr
if ! type arLog >/dev/null 2>&1; then
arLog() {
>&2 echo $@
}
fi
################################################################### http client ##