mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: More fool-proof serial input redirection
This commit is contained in:
parent
e4653741dd
commit
91fb329f96
@ -89,6 +89,10 @@ class ConnectionAttr:
|
||||
res = re.search(r'(127\.\d+\.\d+\.\d+:\d+)', serial)
|
||||
if res:
|
||||
serial = res.group(1)
|
||||
# 12127.0.0.1:16384
|
||||
serial = serial.replace('12127.0.0.1', '127.0.0.1')
|
||||
# auto127.0.0.1:16384
|
||||
serial = serial.replace('auto127.0.0.1', '127.0.0.1').replace('autoemulator', 'emulator')
|
||||
return str(serial)
|
||||
|
||||
def serial_check(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user