1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From 7b6c031417ddc2c85387e8e28f84b1cf31458941 Mon Sep 17 00:00:00 2001
From: Shelikhoo <xiaokangwang@outlook.com>
Date: Tue, 7 Feb 2023 14:34:46 +0000
Subject: [PATCH] Skip HelloVerify Verification for WebRTC connections
Remove HelloVerify step to increase connection speed,
and match behaviour of browsers' implementation.
---
dtlstransport.go | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--- a/dtlstransport.go
+++ b/dtlstransport.go
@@ -310,9 +310,10 @@
return defaultSrtpProtectionProfiles()
}(),
- ClientAuth: dtls.RequireAnyClientCert,
- LoggerFactory: t.api.settingEngine.LoggerFactory,
- InsecureSkipVerify: true,
+ ClientAuth: dtls.RequireAnyClientCert,
+ LoggerFactory: t.api.settingEngine.LoggerFactory,
+ InsecureSkipVerify: true,
+ InsecureSkipVerifyHello: true,
}, nil
}
|