研究了很久,发现:
(tip:这是一个例子,请模仿下面的格式写自己需要的就行了):
frps.toml:
[common]
bind_port = 7000
frpc.toml:
serverAddr = "公网ip"
serverPort = 7000
[[proxies]]
name = "7dtd"
type = "tcp"
localIP = "127.0.0.1"
localPort = 26900
remotePort = 26900
[[proxies]]
name = "7dtd2"
type = "udp"
localIP = "127.0.0.1"
localPort = 26900
remotePort = 26900
[[proxies]]
name = "7dtd3"
type = "tcp"
localIP = "127.0.0.1"
localPort = 26902
remotePort = 26902
[[proxies]]
name = "7dtd4"
type = "udp"
localIP = "127.0.0.1"
localPort = 26902
remotePort = 26902
[[proxies]]
name = "test-tcp"
type = "tcp"
localIP = "192.168.0.112"
localPort = 3389
remotePort = 26904
总结:frp每个版本的格式都大不相同,要么自己看frp的说明文档,要么把文档喂给gpt,让他教你写;而且,gpt给的内容都是过时的知识,想要真正促进科技发展,还需要发挥大家的创造力!加油吧!