修改SNAPI内部路径,修改UA头
This commit is contained in:
@@ -75,4 +75,12 @@ def CheckPortAvailable(port : int) -> bool:
|
||||
import socket
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
||||
return s.connect_ex(('localhost', port)) != 0
|
||||
return False
|
||||
return False
|
||||
|
||||
def GetDeviceInfo() -> str:
|
||||
"""
|
||||
获取设备信息
|
||||
:return:
|
||||
"""
|
||||
import platform
|
||||
return platform.system() + platform.version() + platform.machine()
|
Reference in New Issue
Block a user