refactor(adb): decouple auth from dispatcher

This commit is contained in:
Simon Chan 2022-03-03 16:15:56 +08:00
parent a92d80951b
commit 8650537c66
No known key found for this signature in database
GPG key ID: 8F75717685A974FB
28 changed files with 416 additions and 325 deletions

View file

@ -52,7 +52,7 @@ export class AdbReverseCommand extends AutoDisposable {
return;
}
const address = decodeUtf8(e.packet.payload!);
const address = decodeUtf8(e.packet.payload);
// Address format: `tcp:12345\0`
const port = Number.parseInt(address.substring(4));
if (this.localPortToHandler.has(port)) {