Also redirect nintendowifi.net for 3DS

This commit is contained in:
Matthew Lopez 2022-07-21 21:25:31 -04:00 committed by GitHub
parent 26764b4d1c
commit 802eb15c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'