mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 10:19:17 +02:00
refactor(adb): decouple auth from dispatcher
This commit is contained in:
parent
a92d80951b
commit
8650537c66
28 changed files with 416 additions and 325 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue