mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
wrapTLS only work for clients or if we upgrade the whole server, so disable until a better solution is inplace
This commit is contained in:
@@ -3066,6 +3066,11 @@ fn NewSocket(comptime ssl: bool) type {
|
||||
if (this.socket.isDetached() or this.socket.isNamedPipe()) {
|
||||
return JSValue.jsUndefined();
|
||||
}
|
||||
if (this.handlers.is_server) {
|
||||
globalObject.throw("Cannot upgrade a server-side socket", .{});
|
||||
return .zero;
|
||||
}
|
||||
|
||||
const args = callframe.arguments(1);
|
||||
|
||||
if (args.len < 1) {
|
||||
|
||||
Reference in New Issue
Block a user