-
Notifications
You must be signed in to change notification settings - Fork 68
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
Support TUIC #332
Support TUIC #332
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
lgtm and a few comments
.congestion_controller_factory(Arc::new(CubicConfig::default())); | ||
quinn_config.transport_config(Arc::new(quinn_transport_config)); | ||
// Try to create an IPv4 socket as the placeholder first, if it fails, try IPv6. | ||
let socket = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this work if server is v6 only and v4 is used locally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't think it will work. Should we check server dns record is A or AAAA?
And if server is daul-stack, does clash-rs supply options prefer IPv4 or IPv6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should check.
if you use clash resolver, it will try v6 first https://github.com/Watfaq/clash-rs/blob/master/clash_lib/src/app/dns/resolver.rs#L423
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving this for now. feel free to check in and make a separate PR for this as well as other features mentioned in the PR desc.
thanks!
plz do a cargo fmt too |
🤔 This is a ...
🔗 Related issue link
Impl #190
Work in progress
Features
PR