mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4777] frp fails to start if discovers only one address from coturn/turnserver #3771
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#3771
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 @maasengit on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4777
Bug Description
Logs:
2023/12/25 13:49:45 [W] [xtcp.go:280] [d242ed7f2f9b2b4d] [test_visitor] nathole prepare error: discover error: not enough addresses
With the following change to ignore one address issue, recompile frps and frpc, it works well with turnserver 4.6.2:
`cmd\frpc\sub\nathole.go:71, 72:
if len(addrs) < 2 {
//fmt.Printf("discover error: can not get enough addresses, need 2, got: %v\n", addrs)
//os.Exit(1)
}
pkg\nathole\nathole.go:118:
if len(addrs) < 2 {
//return nil, fmt.Errorf("discover error: not enough addresses")
}
pkg\nathole\classify.go:18, 45
//"fmt"
frpc Version
0.53.2
frps Version
0.53.2
System Architecture
centos7
Configurations
`vi /etc/coturn/turnserver.conf:
listening-port=33111
tls-listening-port=33112
alt-listening-port=33113
listening-ip=192.168.0.5
relay-ip=192.168.0.5
external-ip=x.x.x.x/192.168.0.5
no-cli`
Logs
No response
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (May 6, 2025):
This is the expected behavior.
@maasengit commented on GitHub (May 19, 2025):
turnserver's version is 4.6.2, do you think whether there is a bug in turnserver?
@fatedier commented on GitHub (May 19, 2025):
I’m not sure, but frp relies on multiple addresses to determine the NAT type. It’s recommended to configure a STUN server that supports this behavior.
@github-actions[bot] commented on GitHub (Jun 3, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.