mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3232] NewProxy类型插件未上报自动生成的remote_port #2595
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#2595
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 @zhangboqi on GitHub (Dec 30, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3232
Bug Description
当frpc代理配置remote_port=0时,即意味着由frps自动分配端口,在这种情况下NewProxy类型插件却未上报remote_port值
frpc Version
0.46.0
frps Version
0.46.0
System Architecture
linux/amd64
Configurations
frpc.ini
frps.ini
Logs
这是插件收到的消息体:
Steps to reproduce
...
Affected area
@zhangboqi commented on GitHub (Dec 30, 2022):
不知道这个应该是bug,还是特性
但是希望能提供此类支持
@fatedier commented on GitHub (Dec 30, 2022):
只有当 NewProxy 消息处理成功之后,才会去监听端口,才能明确监听在哪个端口。
如果需要知道 proxy 监听的端口,可以通过 api 接口去获取。
@zhangboqi commented on GitHub (Dec 30, 2022):
明白了。我理解的有问题了。
@zhangboqi commented on GitHub (Dec 30, 2022):
我并未在官方文档中查找到frps api服务的相关文档,可否提供下相关文档说明地址?
@fatedier commented on GitHub (Dec 30, 2022):
https://github.com/fatedier/frp/blob/dev/server/dashboard_api.go
原来是给前端用的,没有明确暴露出来,直接看代码吧
@zhangboqi commented on GitHub (Dec 30, 2022):
哈哈。可以
@github-actions[bot] commented on GitHub (Jan 30, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.