diff --git a/ppadb/command/host/__init__.py b/ppadb/command/host/__init__.py index 6711a53..9ed2980 100644 --- a/ppadb/command/host/__init__.py +++ b/ppadb/command/host/__init__.py @@ -70,7 +70,7 @@ def list_forward(self): device_forward_map = {} for line in result.split('\n'): if line: - serial, local, remote = line.split() + serial, local, remote = line.rsplit(' ', 2) if serial not in device_forward_map: device_forward_map[serial] = {}