VaalaCat / frp-panel

a multi node frp webui and for [frp](https://github.com/fatedier/frp) server and client management, which makes this project a Cloudflare Tunnel or Tailscale Funnel open source alternative
GNU General Public License v3.0
576 stars 44 forks source link

STCP 如何配置访问客户端 #43

Closed moreant closed 4 months ago

moreant commented 4 months ago

请问要如何设置 STCP 类型的 visitors,我用高级模式设置后好像失败了。

{   
    "visitors": [
        {
            "name": "z-cl",
            "type": "stcp",
            "transport": {},
            "bindAddr": "0.0.0.0",
            "bindPort ": 80,
            "secretKey": "z",
            "secretName": "z"
        }
    ]
}
frp-panel  | time="2024-06-02T16:46:53Z" level=error msg="cannot load config" func=github.com/VaalaCat/frp-panel/biz/master/client.UpdateFrpcHander file="/app/biz/master/client/update_tunnel.go:29" error="unmarshal VisitorConfig error: json: unknown field \"bindPort \""
moreant commented 4 months ago

参照 #2 里的配置,发现有两处错误,改好就配置成功了。