Skip to content

Commit

Permalink
Update simple_client.py
Browse files Browse the repository at this point in the history
 替换CDN域名
  • Loading branch information
ElainaFanBoy authored Apr 14, 2024
1 parent 37eca9b commit 3dfd9d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simple_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ def request(self, flow: mitmproxy.http.HTTPFlow):
print("====== GET code.js ======"*3)
print("====== GET code.js ======"*3)
print("====== GET code.js ======"*3)
flow.request.url = "http://cdn.jsdelivr.net/gh/Avenshy/majsoul_mod_plus/safe_code.js"
flow.request.url = "http://fastly.jsdelivr.net/gh/Avenshy/majsoul_mod_plus/safe_code.js"
elif re.search(r'^https://game\.mahjongsoul\.com/v[0-9\.]+\.w/code\.js$', flow.request.url):
flow.request.url = "http://cdn.jsdelivr.net/gh/Avenshy/majsoul_mod_plus/safe_code.js"
flow.request.url = "http://fastly.jsdelivr.net/gh/Avenshy/majsoul_mod_plus/safe_code.js"
elif re.search(r'^https://mahjongsoul\.game\.yo-star\.com/v[0-9\.]+\.w/code\.js$', flow.request.url):
flow.request.url = "http://cdn.jsdelivr.net/gh/Avenshy/majsoul_mod_plus/safe_code.js"
flow.request.url = "http://fastly.jsdelivr.net/gh/Avenshy/majsoul_mod_plus/safe_code.js"

async def start_proxy(host, port, enable_unlocker):
opts = options.Options(listen_host=host, listen_port=port)
Expand Down

0 comments on commit 3dfd9d8

Please sign in to comment.