2020-06-24 20:42:49

This commit is contained in:
monlor
2020-06-24 20:42:49 +08:00
parent 58a835fc80
commit 0d060130ec
3 changed files with 6 additions and 4 deletions

View File

@@ -4,4 +4,4 @@ needver="0.0.1"
supports="linux_aarch64,linux_arm,linux_mips,linux_x86_64,darwin_x86_64" supports="linux_aarch64,linux_arm,linux_mips,linux_x86_64,darwin_x86_64"
appinfo="动态将你的路由器IP绑定到域名" appinfo="动态将你的路由器IP绑定到域名"
newinfo="支持ipv6修复bug" newinfo="支持ipv6修复bug"
version="0.0.4" version="0.0.5"

View File

@@ -13,10 +13,12 @@ start() {
[ -z "$time" ] && time=10 [ -z "$time" ] && time=10
cru a "${appname}" "*/$time * * * * ${mbroot}/apps/${appname}/scripts/${appname}.sh restart" cru a "${appname}" "*/$time * * * * ${mbroot}/apps/${appname}/scripts/${appname}.sh restart"
if [ "${ipv6}" = '1' ]; then if [ "${type}" = '1' -o "${type}" = '2' ]; then
daemon ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update -6 --domain "$domain" daemon ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update -6 --domain "$domain"
fi fi
if [ "${type}" = '0' -o "${type}" = '2' ]; then
daemon ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update --domain "$domain" daemon ${mbroot}/apps/${appname}/bin/${appname} --id "$app_key" --secret "$app_secret" auto-update --domain "$domain"
fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
logsh "$service" "启动${appname}服务失败!" logsh "$service" "启动${appname}服务失败!"
else else

View File

@@ -16,7 +16,7 @@ if [ "$enable" == '1' ]; then
readsh "请输入${appname}域名[例如@.mixbox.com或www.mixbox.com]" "domain" readsh "请输入${appname}域名[例如@.mixbox.com或www.mixbox.com]" "domain"
readsh "请输入${appname}检查分钟间隔(建议10)" "time" "10" readsh "请输入${appname}检查分钟间隔(建议10)" "time" "10"
fi fi
readsh "启用ipv6支持[1/0]" "ipv6" "0" readsh "支持类型[0仅ipv4/1仅ipv6/2通吃]" "type" "0"
readsh "重启${appname}服务[1/0]" "res" "1" readsh "重启${appname}服务[1/0]" "res" "1"
[ "$res" != '0' ] && exit 0 [ "$res" != '0' ] && exit 0