-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Trojan fallback: support alpn address #31
Conversation
Why not get alpn in fallbackConnection? |
Yes I tried, but the conn is over wrapped and alpn cannot be fetched |
Also, always rebase instead of merging new changes. |
Use common.Cast |
I'll fix all of this and submit a new pr. Thank you |
Keep force commit here is just enough. |
inbound/trojan.go
Outdated
inbound.fallbackAddr = options.Fallback.Build() | ||
fallbackAddrs := make(map[string]M.Socksaddr) | ||
for _, fallback := range options.Fallbacks { | ||
if fallback.Server != "" { |
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.
If empty, it is better to return error.
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.
Here, not in fallback.
All done. Thanks for your patient guiding! I'm new in golang and really learn a lot. |
pushed by mistake :( |
It appears that you cannot be included as a contributor in GitHub because you are using an invalid email. |
No description provided.