2025-07-09 19:22:30 +08:00

12 lines
340 B
JavaScript

(() => {
const http = require("http");
const originaleListen = http.Server.prototype.listen;
http.Server.prototype.listen = function (port) {
if (port == 33233) {
console.warn("block port of http server:", port);
return;
}
return originaleListen.apply(this, [port]);
};
})();