fix bugs & bump version

This commit is contained in:
asvow
2024-01-30 00:47:05 +08:00
parent b7edeb0af6
commit 200faabc15
6 changed files with 20 additions and 34 deletions

View File

@@ -36,11 +36,11 @@ custom_instance() {
config_get_bool std_out $cfg 'log_stdout'
config_get_bool std_err $cfg 'log_stderr'
[ -n "$acceptRoutes" ] && ARGS="$ARGS --accept-routes true"
[ -n "$hostname" ] && ARGS="$ARGS --hostname $hostname"
[ -n "$advertiseRoutes" ] && ARGS="$ARGS --advertise-routes $advertiseRoutes"
[ -n "$loginServer" ] && ARGS="$ARGS --login-server $loginServer"
[ -n "$authkey" ] && ARGS="$ARGS --authkey $authkey"
[ "$acceptRoutes" = "1" ] && ARGS="$ARGS --accept-routes=true"
[ -n "$hostname" ] && ARGS="$ARGS --hostname=$hostname"
[ -n "$advertiseRoutes" ] && ARGS="$ARGS --advertise-routes=$advertiseRoutes"
[ -n "$loginServer" ] && ARGS="$ARGS --login-server=$loginServer"
[ -n "$authkey" ] && ARGS="$ARGS --authkey=$authkey"
procd_open_instance
procd_set_param command $PROG $ARGS