mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5292] [Feature Request] Add Auto Transport Mode with IPv4/IPv6 endpoint probing #4085
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#4085
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 @ming79486 on GitHub (Apr 25, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5292
Describe the feature request
Add an Auto Transport Mode for frp so that
frpccan automatically select the best transport protocol when connecting tofrps.When both sides enable:
frpsadvertises available transport endpoints, such as:frpcthen probes the available candidates and selects the best working transport automatically.Expected behavior:
frpcstarts with a bootstrap connection tofrps.frpsreturns supported transport endpoints and ports.frpcprobes candidate protocols.frpcselects the best available protocol.frpccan reselect another available transport.transport.proxyURLis configured, auto mode should only use TCP.IPv4 / IPv6 probing:
If
serverAddris a domain name,frpcshould resolve both A and AAAA records.For each candidate protocol,
frpcshould test both IPv4 and IPv6 addresses when available, for example:tcp@IPv4:7000tcp@IPv6:7000quic@IPv4:7002quic@IPv6:7002The final selection should use the fastest working route.
Example server config:
Example client config:
This would make frp more adaptive across different networks, especially where UDP, QUIC, IPv4, or IPv6 availability varies by environment.
Describe alternatives you've considered
https://github.com/ming79486/frp
Affected area
@ming79486 commented on GitHub (Apr 28, 2026):
I'll submit a pull request.