-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat(tls): allow users to use array for ciphers #361
base: master
Are you sure you want to change the base?
Conversation
Different orders of ciphers perform different fingerprints of TLS data, which means that the order of ciphers matters a lot. How will the json or yaml parser guarantee the order? If they can not guarantee it, I think it's better to keep the long cipher string convention. |
Hi Loyalsoldier, Good morning. As far as I saw in the original implementation ( I do make a test that {
"ciphers": ["A", "B", "C", "D"]
} in JSON or ciphers:
- A
- B
- C
- D is the same as "A:B:C:D" in raw string. I am looking forward to your ideas and feedback. Regards, |
This depends on implementations of parsers. I think we should leave this important thing to users, not the parsers. |
Hi Loyalsoldier, Good morning. I agree with your idea that it should be left to users to determine their style of config files. Now the things works in the following approach:
I am looking forward to your ideas and feedback. Regards, |
You got me wrong. What I mean is that I don't like the idea of this PR because there are chances that different implementations of parsers have different behaviors. We should NOT put users at risk by introducing an array with unpredictable order in Thanks for your contributions though. |
You are welcome. We heavily use trojan-go in our internal projects and modify it a lot, so it is obligatory to share our ideas and modifications with you. I do see your idea that the dependency on parsers may cause inconsistency. In case of such situations, I will have our colleagues implement test units for parsers (JSON and YAML) to ensure they parse the input in an expected approach. |
Hi everyone,
I noticed that the current
cipher
is usually too long when specifying multiple ciphers.Therefore here is my proposal on this section that use an array named
ciphers
for it.Here is how it looks like:
I am looking forward to your ideas and feedback.
Regards,
Chinese White Dolphin