forked from Hay1tsme/segatools
Modify host header in HTTP requests to bypass domain censorship in China. #34
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Dniel97/segatools#34
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Sanhei/segatools:develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
thanks for the PR but what is the benefit of using the modified host header instead of a VPN? I'm not sure if I really wanna include this in segatools tho as this is not really needed to play arcade games.
China enforces strict internet censorship, and servers located in mainland China can only be accessed through domains that have been registered and approved. To bypass these restrictions, Chinese players often use servers in Hong Kong or Japan to handle power-on requests, which then return a mainland China-based title address. However, the connection between mainland China and these regions is often unstable. By merging this pull request, server administrators will be able to register their own domains and fully host their servers within mainland China, thereby improving connectivity.
naominet.jp servers should by specification all be capable of serving requests that're completely absent of a Host header. As the issue appears to be with exclusively auth, that would be the only domain of concern.
I might suggest this would be better implemented as game patches to just not add the Host header when constructing the auth request. (Equally trivial patches could be written to change the host to a different one rather than remove it entirely, if required)
@Dniel97
Servers in mainland China check the HOST header for domain filings before processing HTTP requests. If a domain isn't filed, the request is redirected for filing, causing the poweron request to fail. Without this change, servers in China won't function properly unless the data center risks penalties to assist.
Hey @Dniel97 , I’ve responded to the questions you raised earlier on PR #34, but it seems like there hasn’t been any activity since then. Just wondering if there’s any update or if you need anything else from my side? When you’ve got a moment, would you mind taking a look? Thanks!
Hey @Sanhei sorry for the late reply. Of you can add an
enable
option which is default set to False than I will merge your PR.45cca9476d
tod9ce894bbc
I added a switch to it and tested the power-on request, and it works properly.
That looks perfect, coiuld you also add a brief explanation to doc/config/common.md which explains that setting? After you added the documentation I will merge it!
I’ve added the brief explanation to doc/config/common.md as requested. Let me know if any further adjustments are needed!
Perfect, that's enough. I will merge it now!