This commit is contained in:
Ciro Spaciari
2025-11-24 12:29:26 -08:00
parent c785c40db3
commit f1fff0b5c5

View File

@@ -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;
}