-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed
Description
Bug Description
端口范围映射内容如下:
{{- range $_, $v := parseNumberRangePair "7777,8014-8050,8114-8150,8887,8888,9100,9010-9031" "7777,8014-8050,8114-8150,8887,8888,9100,9010-9031" }}
[[proxies]]
name = "{{ $v.First }}-demo"
type = "tcp"
localIP = "192.168.0.122"
localPort = {{ $v.First }}
remotePort = {{ $v.Second }}
{{- end }}
frps重启时,frpc会出现:
send heartbeat to server
send heartbeat to server
send heartbeat to server
send heartbeat to server
heartbeat timeout
只能手动重启frpc,然后就正常连接上了。
配置修改端口少一些,如下:
{{- range $_, $v := parseNumberRangePair "8014-8050" "8014-8050" }}
[[proxies]]
name = "{{ $v.First }}-demo"
type = "tcp"
localIP = "192.168.0.122"
localPort = {{ $v.First }}
remotePort = {{ $v.Second }}
{{- end }}
重启frps的时候,frpc就能自己重连上。。不确定是不是端口数量太多触发的问题。如果有端口数量限制,请问下是多少。。端口数量多的话,是不是要多用几个frpc,不能放在同一个frpc...
frpc Version
v0.61.2
frps Version
v0.61.2
System Architecture
linux/amd64
Configurations
{{- range $_, $v := parseNumberRangePair "7777,8014-8050,8114-8150,8887,8888,9100,9010-9031" "7777,8014-8050,8114-8150,8887,8888,9100,9010-9031" }}
[[proxies]]
name = "{{ $v.First }}-demo"
type = "tcp"
localIP = "192.168.0.122"
localPort = {{ $v.First }}
remotePort = {{ $v.Second }}
{{- end }}
Logs
No response
Steps to reproduce
...
Affected area
- Docs
- Installation
- Performance and Scalability
- Security
- User Experience
- Test and Release
- Developer Infrastructure
- Client Plugin
- Server Plugin
- Extensions
- Others
Metadata
Metadata
Assignees
Labels
No labels