fix: change desktop pet port 51983->41983 (avoid Hyper-V reserved range) & update wechat group QR code
This commit is contained in:
@@ -50,7 +50,7 @@ def render_sidebar():
|
||||
subprocess.Popen([sys.executable, pet_script], **kwargs)
|
||||
def _pet_req(q):
|
||||
def _do():
|
||||
try: urlopen(f'http://127.0.0.1:51983/?{q}', timeout=2)
|
||||
try: urlopen(f'http://127.0.0.1:41983/?{q}', timeout=2)
|
||||
except Exception: pass
|
||||
threading.Thread(target=_do, daemon=True).start()
|
||||
agent._pet_req = _pet_req
|
||||
|
||||
Reference in New Issue
Block a user