mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
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
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:
parent
22aad7bbd0
commit
35aceaa4a9
9 changed files with 197 additions and 46 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue