change nodejs base image..

This commit is contained in:
zizifn
2023-05-08 03:40:07 +08:00
committed by zizifn
parent bb6f7d7648
commit bb30c69474
3 changed files with 919 additions and 913 deletions

View File

@@ -338,7 +338,10 @@ function makeUDPSocketStream(portRemote, address) {
start(controller) { start(controller) {
/* … */ /* … */
udpClient.on('message', (message, info) => { udpClient.on('message', (message, info) => {
console.log('udp package received', message); console.log(
'udp package received',
Buffer.from(message).toString('hex')
);
controller.enqueue( controller.enqueue(
Buffer.concat([new Uint8Array([0, info.size]), message]) Buffer.concat([new Uint8Array([0, info.size]), message])
); );
@@ -366,7 +369,10 @@ function makeUDPSocketStream(portRemote, address) {
controller.error(`Failed to send UDP packet !! ${err}`); controller.error(`Failed to send UDP packet !! ${err}`);
safeCloseUDP(udpClient); safeCloseUDP(udpClient);
} }
console.log('udp package sent', udpData); console.log(
'udp package sent',
Buffer.from(udpData).toString('hex')
);
resolve(true); resolve(true);
}); });
}); });

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long