无需检测全局变量
This commit is contained in:
1 parent
df98840ad3
commit
8317b92d30
1 file changed
+11
-12
@@ -19,23 +19,22 @@ export arToken
|
|||||||
|
|
||||||
# The url to be used for querying public ipv6 address. We set a default here.
|
# The url to be used for querying public ipv6 address. We set a default here.
|
||||||
|
|
||||||
if [ -z "$arIp6QueryUrl" ]; then
|
export arIp6QueryUrl="http://ipv6.rpc.im/ip"
|
||||||
arIp6QueryUrl="http://ipv6.rpc.im/ip"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# The error code to return when a ddns record is not changed
|
# The error code to return when a ddns record is not changed
|
||||||
|
# By default, report unchanged event as success
|
||||||
|
|
||||||
if [ -z "$arErrCodeUnchanged" ]; then
|
export arErrCodeUnchanged=0
|
||||||
arErrCodeUnchanged=0 # By default, report unchanged event as success
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Define arLog to output to stderr, if not defined in ddnspod.sh
|
################################################################### logger ##
|
||||||
|
|
||||||
if ! type arLog >/dev/null 2>&1; then
|
# Output log to stderr
|
||||||
arLog() {
|
|
||||||
>&2 echo $@
|
arLog() {
|
||||||
}
|
|
||||||
fi
|
>&2 echo $@
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
################################################################### http client ##
|
################################################################### http client ##
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user