From 8a5e5bce4e326f88f1c8fac75c2860191836471a Mon Sep 17 00:00:00 2001 From: pk5ls20 Date: Wed, 20 Nov 2024 20:58:36 +0800 Subject: [PATCH] fix: #553 --- src/core/packet/highway/highwayContext.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/packet/highway/highwayContext.ts b/src/core/packet/highway/highwayContext.ts index f02e375c..96da373e 100644 --- a/src/core/packet/highway/highwayContext.ts +++ b/src/core/packet/highway/highwayContext.ts @@ -78,8 +78,12 @@ export class PacketHighwayContext { ip: int32ip2str(addr.ip), port: addr.port }); + this.hwClient.changeServer(int32ip2str(addr.ip), addr.port); } } + if (this.sig.serverAddr.length === 0) { + this.logger.warn('[Highway PrepareUpload] server addr is empty!'); + } } async uploadImage(peer: Peer, img: PacketMsgPicElement): Promise {