mirror of
https://github.com/MatthewL246/mitmproxy-pretendo.git
synced 2026-04-25 15:57:57 -05:00
Also redirect nintendowifi.net for 3DS
This commit is contained in:
parent
26764b4d1c
commit
802eb15c4d
|
|
@ -21,6 +21,8 @@ class PretendoAddon:
|
|||
if ctx.options.pretendo_redirect:
|
||||
if 'nintendo.net' in flow.request.pretty_host:
|
||||
flow.request.host_header = flow.request.pretty_host.replace('nintendo.net', 'pretendo.cc')
|
||||
elif 'nintendowifi.net' in flow.request.pretty_host:
|
||||
flow.request.host_header = flow.request.pretty_host.replace('nintendowifi.net', 'pretendo.cc')
|
||||
|
||||
if ctx.options.pretendo_http:
|
||||
flow.request.scheme = 'http'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user