Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
d2d4c252
Commit
d2d4c252
authored
Apr 19, 2022
by
Melledy
Committed by
GitHub
Apr 19, 2022
Browse files
Merge pull request #35 from MlgmXyysd/main
Make overseauspider.yuanshen.com reachable
parents
4295ec8f
c2a2f569
Changes
2
Hide whitespace changes
Inline
Side-by-side
proxy.py
View file @
d2d4c252
...
...
@@ -20,7 +20,7 @@
#
##
from
mitmproxy
import
ctx
,
http
from
mitmproxy
import
http
class
MlgmXyysd_Genshin_Impact_Proxy
:
...
...
@@ -53,16 +53,13 @@ class MlgmXyysd_Genshin_Impact_Proxy:
"hk4e-sdk-os-static.hoyoverse.com"
,
"sdk-os-static.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"
):
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
)
if
flow
.
request
.
host
in
LIST_DOMAINS
:
flow
.
request
.
host
=
REMOTE_HOST
addons
=
[
MlgmXyysd_Genshin_Impact_Proxy
()
]
\ No newline at end of file
]
run.bat
deleted
100644 → 0
View file @
4295ec8f
@echo
off
::This will not work if your java is in a different location, plugin as necessary
::this just saves you from changing your PATH
"C:\Program Files\Java\jdk1.8.0_202\bin\java.exe"
-jar
./grasscutter.jar
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment