Skip to content
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

fix: generate ClientHelloSpec only once #306

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

adotkhan
Copy link
Contributor

This fixes an issue introduced in #301 where calling BuildHanshakeStateWithoutSession with a random profile, generates a new CilentHelloSpec on each call.

This PR assume that UConn.ClientHelloID is read-only and that it's value should not be modified, which is my understanding of uTLS currently operates. If this assumption is false, another workaround needs to be found.

A review of this is very much appreciated.

Copy link
Contributor

@gaukas gaukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks for doing this. I am approving this PR for now, and if no further major change is made, you can expect it get merged by the end of this week.

u_parrots.go Outdated Show resolved Hide resolved
Co-authored-by: Gaukas Wang <i@gauk.as>
Signed-off-by: adotkhan <61702862+adotkhan@users.noreply.github.com>
@adotkhan
Copy link
Contributor Author

Thank you for the review, change applied.

@gaukas gaukas merged commit 4a28d1a into refraction-networking:master Jul 19, 2024
6 checks passed
adotkhan added a commit to Psiphon-Labs/utls that referenced this pull request Dec 10, 2024
* fix: generate ClientHelloSpec only once

* chore: remove empty line in u_parrots.go

Co-authored-by: Gaukas Wang <i@gauk.as>
Signed-off-by: adotkhan <61702862+adotkhan@users.noreply.github.com>

---------

Signed-off-by: adotkhan <61702862+adotkhan@users.noreply.github.com>
Co-authored-by: Gaukas Wang <i@gauk.as>
adotkhan added a commit to Psiphon-Labs/utls that referenced this pull request Dec 10, 2024
* fix: generate ClientHelloSpec only once

* chore: remove empty line in u_parrots.go

Co-authored-by: Gaukas Wang <i@gauk.as>
Signed-off-by: adotkhan <61702862+adotkhan@users.noreply.github.com>

---------

Signed-off-by: adotkhan <61702862+adotkhan@users.noreply.github.com>
Co-authored-by: Gaukas Wang <i@gauk.as>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants