mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3228] STCP not working #2588
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#2588
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 @Setsuna-Kitahara on GitHub (Dec 25, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3228
Bug Description
如日志所示,无法联通
两边都能连上FRP服务端,STCP服务端的设置在FRP服务端这里是看得到的,STCP客户端有其他TCP再跑,也跑得动。
frpc Version
0.46
frps Version
0.46
System Architecture
Client: Linux/arm64 Server: Linux/amd64
Configurations
client
[NAME-Client]
type = stcp
role = visitor
sk = ***
server = NAME
bind_addr = 172.17.0.1 # This Client's IP
bind_port = 20001
server
[NAME]
type = stcp
sk = ***
local_port = 10050
use_encryption = true
use_compression = true
Logs
2022/12/25 06:33:39 [D] [visitor.go:118] [8562aa28541e628d] [NAME-Client] get a new stcp user connection
2022/12/25 06:33:39 [W] [visitor.go:149] [8562aa28541e628d] [NAME-Client] start new visitor connection error: custom listener for [] doesn't exist
Steps to reproduce
telnet 172.17.0.1 20001
Affected area
@superzjg commented on GitHub (Dec 26, 2022):
看上去server没有指明local_ip = ?
client中server_name = NAME是标准写法
@Setsuna-Kitahara commented on GitHub (Dec 26, 2022):
其实就是127.0.0.1
也尝试过写过,但是问题依旧
@superzjg commented on GitHub (Dec 26, 2022):
我不是提示你 client中server_name = NAME才是标准写法吗?估计你没改,还说问题依旧。
实际上我刚刚把server_name = NAME改成server = NAME以后,跟你报一样错:
custom listener for [] doesn't exist
@Setsuna-Kitahara commented on GitHub (Dec 26, 2022):
好吧,是没仔细看文件,这代码是0.37版本抄下来的,但是当年好像就是server_name……是当年脑子烧糊涂了吧……