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

uTLS support #212

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
optimization uTLS Log
  • Loading branch information
eMeab authored and eMeab committed Jan 28, 2021
commit f0ceb17ea61eaad3b18e45b93eeca0f48c314da3
3 changes: 2 additions & 1 deletion transport/internet/tcp/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.Me
fingerprint, err := tls.GetuTLSClientHelloID(config.Fingerprint)
if err != nil {
conn = tls.Client(conn, tlsConfig)
newError("Switching to TLS.").Base(err).AtWarning().WriteToLog()
newError("switching to TLS.").Base(err).AtWarning().WriteToLog()
} else {
conn = tls.UClient(conn, tlsConfig, *fingerprint)
newError("switching to uTLS. fingerprint: " + fingerprint.Str()).AtInfo().WriteToLog()
}
} else {
conn = tls.Client(conn, tlsConfig)
Expand Down