mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-24 09:08:16 +08:00
chore: remove UDP console log
This commit is contained in:
@@ -343,10 +343,10 @@ function makeUDPSocketStream(portRemote, address) {
|
||||
start(controller) {
|
||||
/* … */
|
||||
udpClient.on('message', (message, info) => {
|
||||
console.log(
|
||||
`udp package received ${info.size} bytes from ${info.address}:${info.port}`,
|
||||
Buffer.from(message).toString('hex')
|
||||
);
|
||||
// console.log(
|
||||
// `udp package received ${info.size} bytes from ${info.address}:${info.port}`,
|
||||
// Buffer.from(message).toString('hex')
|
||||
// );
|
||||
controller.enqueue(
|
||||
Buffer.concat([
|
||||
new Uint8Array([(info.size >> 8) & 0xff, info.size & 0xff]),
|
||||
@@ -377,10 +377,10 @@ function makeUDPSocketStream(portRemote, address) {
|
||||
controller.error(`Failed to send UDP packet !! ${err}`);
|
||||
safeCloseUDP(udpClient);
|
||||
}
|
||||
console.log(
|
||||
'udp package sent',
|
||||
Buffer.from(udpData).toString('hex')
|
||||
);
|
||||
// console.log(
|
||||
// 'udp package sent',
|
||||
// Buffer.from(udpData).toString('hex')
|
||||
// );
|
||||
resolve(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user