mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-24 00:48:39 +08:00
enhance logic
This commit is contained in:
@@ -54,7 +54,9 @@ const httpServer = createServer(async (req, resp) => {
|
||||
() => {
|
||||
console.log('connected');
|
||||
resp.writeHead(200);
|
||||
rawHttp.pipe(socket).pipe(resp);
|
||||
process.nextTick(() => {
|
||||
rawHttp.pipe(socket).pipe(resp);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user