send server name (SNI) when opening TLS connections (#4973)
Some checks are pending
code_lint / go (push) Waiting to run
code_lint / go_mod (push) Waiting to run
code_lint / docs (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_e2e (push) Waiting to run

This commit is contained in:
Alessandro Ros 2025-09-15 19:38:36 +02:00 committed by GitHub
parent 22aad7bbd0
commit 35aceaa4a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 197 additions and 46 deletions

View file

@ -83,7 +83,7 @@ func (s *Source) runReader(ctx context.Context, u *url.URL, fingerprint string)
connectCtx, connectCtxCancel := context.WithTimeout(ctx, time.Duration(s.ReadTimeout))
conn := &gortmplib.Client{
URL: u,
TLSConfig: tls.ConfigForFingerprint(fingerprint),
TLSConfig: tls.MakeConfig(u.Hostname(), fingerprint),
Publish: false,
}
err := conn.Initialize(connectCtx)