mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 17:51:53 +00:00
Make overseauspider.yuanshen.com reachable
* Since DispatchServer has handled the server correctly, so it should not be invalidated: https://github.com/Melledy/Grasscutter/blob/main/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java#L402
This commit is contained in:
parent
f739ddb29e
commit
c2a2f569ef
11
proxy.py
11
proxy.py
@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
##
|
##
|
||||||
|
|
||||||
from mitmproxy import ctx, http
|
from mitmproxy import http
|
||||||
|
|
||||||
class MlgmXyysd_Genshin_Impact_Proxy:
|
class MlgmXyysd_Genshin_Impact_Proxy:
|
||||||
|
|
||||||
@ -53,14 +53,11 @@ class MlgmXyysd_Genshin_Impact_Proxy:
|
|||||||
"hk4e-sdk-os-static.hoyoverse.com",
|
"hk4e-sdk-os-static.hoyoverse.com",
|
||||||
"sdk-os-static.hoyoverse.com",
|
"sdk-os-static.hoyoverse.com",
|
||||||
"api-account-os.hoyoverse.com",
|
"api-account-os.hoyoverse.com",
|
||||||
"hk4e-sdk-os.hoyoverse.com"
|
"hk4e-sdk-os.hoyoverse.com",
|
||||||
|
"overseauspider.yuanshen.com"
|
||||||
]
|
]
|
||||||
|
|
||||||
if flow.request.url.startswith("http://overseauspider.yuanshen.com:8888/log"):
|
if flow.request.host in LIST_DOMAINS:
|
||||||
ctx.log.info("Block overseauspider.yuanshen.com")
|
|
||||||
flow.response = http.HTTPResponse.make(404)
|
|
||||||
elif flow.request.host in LIST_DOMAINS:
|
|
||||||
ctx.log.info("Redirect " + flow.request.host)
|
|
||||||
flow.request.host = REMOTE_HOST
|
flow.request.host = REMOTE_HOST
|
||||||
|
|
||||||
addons = [
|
addons = [
|
||||||
|
Loading…
Reference in New Issue
Block a user