mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5273] [Feature Request] Support NewVisitorConn operation in server plugin callbacks #4074
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#4074
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 @YH-Wang000 on GitHub (Apr 1, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5273
Describe the feature request
Description
When using stcpproxies, the remote host may be in sleep mode and require Wake-on-LAN (WOL) to wake up. Currently, accessing it requires two separate steps:
This breaks the seamless remote access experience. I wish to automate this by using the frp server plugin callback, but the newvisitorconnoperation (which signals a visitor is connecting to an stcp proxy) is not currently exposed in the plugin's opsconfiguration.
Proposal
Please add support for the newvisitorconnoperation to the server plugin system. This would allow configuration like:
Expected Workflow
Benefits
Context
frp version: v0.68.0
Proxy type: stcp(for RDP access)
Current workaround: External service, which is less integrated.
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (Apr 1, 2026):
For STCP proxies, visitor connections already go through the
NewUserConnplugin hook once the proxy is registered, so you can already run pre-connection logic at that point.However, the core problem in your WOL scenario is that the backend host is asleep, meaning frpc isn't running and the STCP proxy isn't registered on frps at all. To support this, frps would need to hold visitor connections, wait for an unregistered proxy to appear, and retry — which adds significant complexity to the server and is not something we want to take on. The server should focus on routing and forwarding, not orchestrating backend availability.
This kind of orchestration is better handled outside of frps.
@github-actions[bot] commented on GitHub (Apr 16, 2026):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.