fix and optimize (except WTVIRC, it needs a lot of work)

This commit is contained in:
zefie
2025-08-12 17:44:26 -04:00
parent 733200c897
commit a85efc9968
22 changed files with 504 additions and 518 deletions

View File

@@ -12,7 +12,7 @@ exports.createServer = (opts, handler) => {
socket.pause();
// Determine if this is an HTTP(s) request
let byte = buffer[0];
const byte = buffer[0];
let protocol;
if (byte === 22) {
@@ -21,7 +21,7 @@ exports.createServer = (opts, handler) => {
protocol = 'http';
}
let proxy = server[protocol];
const proxy = server[protocol];
if (proxy) {
// Push the buffer back onto the front of the data stream
socket.unshift(buffer);