mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Revised serial should starts with 127
This commit is contained in:
parent
0300de86f6
commit
c74c8729f0
@ -65,8 +65,9 @@ class ConnectionAttr:
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
# 夜神模拟器 127.0.0.1:62001
|
# 夜神模拟器 127.0.0.1:62001
|
||||||
|
# MuMu模拟器12127.0.0.1:16384
|
||||||
if '模拟' in serial:
|
if '模拟' in serial:
|
||||||
res = re.search(r'(\d+\.\d+\.\d+\.\d+:\d+)', serial)
|
res = re.search(r'(127\.\d+\.\d+\.\d+:\d+)', serial)
|
||||||
if res:
|
if res:
|
||||||
serial = res.group(1)
|
serial = res.group(1)
|
||||||
return str(serial)
|
return str(serial)
|
||||||
|
Loading…
Reference in New Issue
Block a user