| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4a5d7a4 commit 377e8ce
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,10 +82,11 @@ function SecureContext(secureProtocol, secureOptions, minVersion, maxVersion) { | |||
| 82 | 82 | throw new ERR_TLS_PROTOCOL_VERSION_CONFLICT(maxVersion, secureProtocol); | |
| 83 | 83 | } | |
| 84 | 84 | ||
| 85 | + const minV = toV('minimum', minVersion, tls.DEFAULT_MIN_VERSION); | ||
| 86 | + const maxV = toV('maximum', maxVersion, tls.DEFAULT_MAX_VERSION); | ||
| 87 | + | ||
| 85 | 88 | this.context = new NativeSecureContext(); | |
| 86 | - this.context.init(secureProtocol, | ||
| 87 | - toV('minimum', minVersion, tls.DEFAULT_MIN_VERSION), | ||
| 88 | - toV('maximum', maxVersion, tls.DEFAULT_MAX_VERSION)); | ||
| 89 | + this.context.init(secureProtocol, minV, maxV); | ||
| 89 | 90 | ||
| 90 | 91 | if (secureOptions) { | |
| 91 | 92 | validateInteger(secureOptions, 'secureOptions'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments