forked from SoDOff-Project/sodoff
update redirect
This commit is contained in:
parent
1fec86c12a
commit
00d0a182c7
@ -66,7 +66,7 @@ class LocalRedirect:
|
|||||||
print('Loaded redirect addon')
|
print('Loaded redirect addon')
|
||||||
|
|
||||||
def request(self, flow: mitmproxy.http.HTTPFlow):
|
def request(self, flow: mitmproxy.http.HTTPFlow):
|
||||||
if 'api.jumpstart.com' in flow.request.pretty_host and routable(flow.request.path):
|
if 'api.sodoff.spirtix.com' in flow.request.pretty_host and routable(flow.request.path):
|
||||||
flow.request.host = "localhost"
|
flow.request.host = "localhost"
|
||||||
flow.request.scheme = 'http'
|
flow.request.scheme = 'http'
|
||||||
flow.request.port = 5000
|
flow.request.port = 5000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user