mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 10:19:17 +02:00
fix(adb): parse serviceListenAddresses
This commit is contained in:
parent
aeff1f8818
commit
af90a5bcb5
1 changed files with 4 additions and 1 deletions
|
@ -36,7 +36,10 @@ export class AdbTcpIpCommand extends AdbCommandBase {
|
|||
const persistPort = await this.adb.getProp("persist.adb.tcp.port");
|
||||
|
||||
return {
|
||||
serviceListenAddresses: serviceListenAddresses.split(","),
|
||||
serviceListenAddresses:
|
||||
serviceListenAddresses != ""
|
||||
? serviceListenAddresses.split(",")
|
||||
: [],
|
||||
servicePort: this.#parsePort(servicePort),
|
||||
persistPort: this.#parsePort(persistPort),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue