Add in port forwarding to get MSGamepass to work #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ok, don't actually merge this, but the work is done to use netsh to create a portforward,
MS Gamepass version doesn't like using ports when requesting uris, so this creates a portforward for 127.0.0.80:80 to 127.0.0.1:41012 so we can just use http://127.0.0.80/
it also cleans up prior port forwards and tries to clean up the portforward on close
Issues are that you need elevated privileges to execute the port forward, and while you can set the exe to launch as admin, you get the UAC prompt to do so every single time you reload mods, which can cause a deadlock if you don't realise it's asking in the background (also, very annoying). It may be by passable if we sign the exe maybe, but I'm unsure.
Anyway, here's some work. I have a combo set of batch files to create/remove the portforwards, and can walk people through the process, but no easy drop in solution