-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Allow multiple transports/ports on frpc (in order of preference?) #3909
Comments
I did not expect a specific scenario that requires this feature. Consider some potential issues:
Currently it is not very clear, more thinking is needed. |
I would imagine that retry would start at the top and go through order of preference, it would use the retry interval, the user would be responsible for adjusting the interval to handle this.
For me, if there were multiple server addresses, I would just consider it as nested orders of preference, first server, iterate through connection types, then second server, iterate through. As long as its explicitly documented what its going to do the config isn't too complex. |
It would also be nice to be able to connect to alternative frp servers. For example, if one server goes down. All clients connect to one of the alternative FRPS. |
Seems that was already planned, see #3909 (comment) above |
Thank you very much for your quick response to requests. You are the best! |
I apologize for my importunity. Is it possible to implement the principle of not switching to an alternative server, but a permanent connection to all available servers? In this case, there is no need to think about priorities. Each client, when connected and during operation, will poll all available servers and receive information about available ports. |
Describe the feature request
In
frps
we can specify ports for tcp, kcp and quic, however infrpc.toml
we only get to specify a singletransport.protocol
andserverPort
.It would be nice to be able to specify a comma-separated order of preferred protocols (and corresponding
serverPort
), thatfrpc
would attempt.Justification for this is the
frpc
that UDP protocols may be preferred, however firewalls may not always allow UDP, so a tcp fallback configuration would be nice.Describe alternatives you've considered
Running multiple frpc daemons with different configs.
Affected area
The text was updated successfully, but these errors were encountered: