mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: [ALAS] Handle copy-pasted serial 5555,16384 to be fool-proof
This commit is contained in:
parent
4d5c855e3a
commit
8f79452fd3
@ -78,9 +78,9 @@ class ConnectionAttr:
|
||||
# 127.0.0.1.5555
|
||||
serial = serial.replace('127.0.0.1.', '127.0.0.1:')
|
||||
# Mumu12 5.0 shows double serials, some people may just copy-paste it
|
||||
# 5555,16384
|
||||
if ',' in serial:
|
||||
left, _, right = serial.partition(',')
|
||||
# 5555,16384 -> replaced to 5555.16384
|
||||
if '.' in serial:
|
||||
left, _, right = serial.partition('.')
|
||||
if left.startswith('55') and right.startswith('16'):
|
||||
serial = right
|
||||
# 16384
|
||||
|
||||
Loading…
Reference in New Issue
Block a user