mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3676] The bind_port parameter in the toml configuration file is ignored #2927
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2927
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alegz81 on GitHub (Oct 14, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3676
Bug Description
frps ignores the bind_port parameter in the configuration file.
The value 7000 is used
If you don't use the configuration file and run with the frps -p 700, then everything works correctly.
Also if it works fine use the file ini format
frpc Version
0.52.1
frps Version
0.52.1
System Architecture
linux/amd64 Ubuntu server 22.04 x64
Configurations
bind_addr = "0.0.0.0"
bind_port = 700
kcpBindPort = 700
quicBindPort = 701
transport.maxPoolCount = 20
webServer.addr = "x.x.x.x"
webServer.port = 7500
webServer.user = "xxxx"
webServer.password = "xxxxxx"
webServer.pprofEnable = false
enablePrometheus = false
log.to = "console"
log.level = "info"
log.maxDays = 3
log.disablePrintColor = false
auth.method = "token"
auth.token = "xxxxxxxxxxxx"
allowPorts = [
{ start = 500, end = 550 }
]
maxPortsPerClient = 0
Logs
[root.go:102] frps uses config file: frps.toml
[I] [service.go:200] frps tcp listen on 0.0.0.0:7000
[I] [service.go:210] frps kcp listen on udp 0.0.0.0:700
[I] [service.go:226] frps quic listen on quic 0.0.0.0:701
[I] [service.go:312] Dashboard listen on x.x.x.x:7500
[I] [root.go:111] frps started successfully
Steps to reproduce
...
Affected area
@duandaxei commented on GitHub (Oct 15, 2023):
bind_addr => bindAddr
bind_port => bindPort
@alegz81 commented on GitHub (Oct 15, 2023):
My mistake. Didn't read the documentation carefully.