diff --git a/package/lean/luci-app-frpc/luasrc/model/cbi/frp/config.lua b/package/lean/luci-app-frpc/luasrc/model/cbi/frp/config.lua index e9499c8c9..48bfe7250 100644 --- a/package/lean/luci-app-frpc/luasrc/model/cbi/frp/config.lua +++ b/package/lean/luci-app-frpc/luasrc/model/cbi/frp/config.lua @@ -38,7 +38,7 @@ e:depends("domain_type","both_dtype") e = t:taboption("base",ListValue, "stcp_role", translate("STCP Role")) e.default = "server" e:value("server",translate("STCP Server")) -e:value("vistor",translate("STCP Vistor")) +e:value("visitor",translate("STCP Vistor")) e:depends("type","stcp") e = t:taboption("base",Value, "remote_port", translate("Remote Port")) e.datatype = "port" @@ -67,7 +67,7 @@ e.default = "abcdefg" e:depends("type","stcp") e = t:taboption("base",Value, "stcp_servername", translate("STCP Server Name"), translate("STCP Server Name is Service Remark Name of STCP Server")) e.default = "secret_tcp" -e:depends("stcp_role","vistor") +e:depends("stcp_role","visitor") e = t:taboption("other",Flag, "enable_locations", translate("Enable URL routing"), translate("Frp support forward http requests to different backward web services by url routing.")) e:depends("type","http") e = t:taboption("other",Value, "locations ", translate("URL routing"), translate("Http requests with url prefix /news will be forwarded to this service.")) diff --git a/package/lean/luci-app-frpc/root/etc/init.d/frp b/package/lean/luci-app-frpc/root/etc/init.d/frp index 66f7881dc..ced13f7bb 100755 --- a/package/lean/luci-app-frpc/root/etc/init.d/frp +++ b/package/lean/luci-app-frpc/root/etc/init.d/frp @@ -80,7 +80,7 @@ conf_proxy_add() { [ -n "$plugin_unix_path" ] && echo "plugin_unix_path=$plugin_unix_path" >>$tmpconf [ -n "$stcp_role" ] && { - if [ "$stcp_role" == "vistor" ]; then + if [ "$stcp_role" == "visitor" ]; then echo "role=$stcp_role" >>$tmpconf [ -n "$local_ip" ] && echo "bind_addr=$local_ip" >>$tmpconf [ -n "$local_port" ] && echo "bind_port=$local_port" >>$tmpconf