启动命令修复
This commit is contained in:
parent
b21f9ef2ba
commit
2fdcd501f8
@ -39,88 +39,67 @@ append_options() {
|
||||
fi
|
||||
case ${o} in
|
||||
"bind_addr")
|
||||
$o="bindAddr"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "bindAddr = $v" >>"$file"
|
||||
;;
|
||||
"bind_port")
|
||||
$o="bindPort"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "bindPort = $v" >>"$file"
|
||||
;;
|
||||
"auth_token")
|
||||
$o="auth.token"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "auth.token = $v" >>"$file"
|
||||
;;
|
||||
"tls_force")
|
||||
$o="tls.force"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "tls.force = $v" >>"$file"
|
||||
;;
|
||||
"kcp_bind_port")
|
||||
$o="kcpBindPort"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "kcpBindPort = $v" >>"$file"
|
||||
;;
|
||||
"quic_bind_port")
|
||||
$o="quicBindPort"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "quicBindPort = $v" >>"$file"
|
||||
;;
|
||||
"vhost_http_port")
|
||||
$o="vhostHTTPPort"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "vhostHTTPPort = $v" >>"$file"
|
||||
;;
|
||||
"vhost_https_port")
|
||||
$o="vhostHTTPSPort"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "vhostHTTPSPort = $v" >>"$file"
|
||||
;;
|
||||
"tcpmux_http_connect_port")
|
||||
$o="tcpmuxHTTPConnectPort"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "tcpmuxHTTPConnectPort = $v" >>"$file"
|
||||
;;
|
||||
"transport_max_pool_count")
|
||||
$o="transport.maxPoolCount"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "transport.maxPoolCount = $v" >>"$file"
|
||||
;;
|
||||
"max_ports_per_client")
|
||||
$o="maxPortsPerClient"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "maxPortsPerClient = $v" >>"$file"
|
||||
;;
|
||||
"enable_prometheus")
|
||||
$o="enablePrometheus"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "enablePrometheus = $v" >>"$file"
|
||||
;;
|
||||
"webserver_addr")
|
||||
$o="webServer.addr"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "webServer.addr = $v" >>"$file"
|
||||
;;
|
||||
"webserver_port")
|
||||
$o="webServer.port"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "webServer.port = $v" >>"$file"
|
||||
;;
|
||||
"webserver_user")
|
||||
$o="webServer.user"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "webServer.user = $v" >>"$file"
|
||||
;;
|
||||
"webserver_password")
|
||||
$o="webServer.password"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "webServer.password = $v" >>"$file"
|
||||
;;
|
||||
"sub_domain_host")
|
||||
$o="subDomainHost"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "subDomainHost = $v" >>"$file"
|
||||
;;
|
||||
"log_to")
|
||||
$o="log.to"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "log.to = $v" >>"$file"
|
||||
;;
|
||||
"log_level")
|
||||
$o="log.level"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "log.level = $v" >>"$file"
|
||||
;;
|
||||
"log_maxdays")
|
||||
$o="log.maxDays"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "log.maxDays = $v" >>"$file"
|
||||
;;
|
||||
"log_disable_print_color")
|
||||
$o="log.disablePrintColor"
|
||||
echo "${o} = $v" >>"$file"
|
||||
echo "log.disablePrintColor = $v" >>"$file"
|
||||
;;
|
||||
*) echo "${o} = $v" >>"$file"
|
||||
esac
|
||||
@ -251,7 +230,7 @@ start_instance() {
|
||||
|
||||
test -d "$CONFIG_FOLDER" || mkdir -p "$CONFIG_FOLDER"
|
||||
|
||||
local config_file="$CONFIG_FOLDER/frps.$section.ini"
|
||||
local config_file="$CONFIG_FOLDER/frps.$section.toml"
|
||||
|
||||
create_config_file "$config_file"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user