优化部分设置逻辑

This commit is contained in:
2026-07-23 19:23:09 +08:00
parent 8c3d7246c2
commit 4cfb684f86
9 changed files with 467 additions and 420 deletions
+29
View File
@@ -0,0 +1,29 @@
serverAddr = "{{.ServerAddr}}"
serverPort = {{.ServerPort}}
[auth]
token = "{{.Token}}"
[log]
to = "./frpc.log"
level = "{{.LogLevel}}"
maxDays = {{.LogMaxDays}}
[transport]
tcpMux = {{.TcpMux}}
tcpMuxKeepaliveInterval = {{.TcpMuxKeepalive}}
heartbeatInterval = {{.HeartbeatInterval}}
heartbeatTimeout = {{.HeartbeatTimeout}}
poolCount = {{.PoolCount}}
[webServer]
addr = "127.0.0.1:7400"
{{range .Proxies}}
[[proxies]]
name = "{{.Name}}"
type = "{{.Type}}"
localIP = "{{.LocalIP}}"
localPort = {{.LocalPort}}
remotePort = {{.RemotePort}}
{{end}}