mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: More fool-proof serial input redirection
This commit is contained in:
parent
4138c4d9ca
commit
888cb029ff
@ -68,6 +68,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