mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
fix secure connection logic
This commit is contained in:
@@ -711,7 +711,12 @@ pub const Request = struct {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (self._request_secure and !self._proxy_secure and !self._client.isForwardProxy()) {
|
||||
|
||||
|
||||
if (
|
||||
(self._request_secure and !self._proxy_secure) and
|
||||
(!self._client.isForwardProxy() or self._proxy_secure)
|
||||
) {
|
||||
self._connection.?.tls = .{
|
||||
.blocking = try tls.client(std.net.Stream{ .handle = socket }, tls_config),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user