mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
better
This commit is contained in:
@@ -1380,7 +1380,7 @@ pub fn NewSocket(comptime ssl: bool) type {
|
||||
if (this.socket.isDetached() or this.socket.isNamedPipe()) {
|
||||
return .js_undefined;
|
||||
}
|
||||
if (this.handlers.is_server) {
|
||||
if (this.isServer()) {
|
||||
globalObject.throw("Server-side sockets cannot be upgraded to TLS", .{});
|
||||
return .zero;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user