Add a --domain function for the AR code.
Like the wiimmfi patcher, which you can use to patch a game with a certain domain (Like I made BeanJrFi do), maybe add this type of thing to the patcher so instead of patching just http, patch http and the domain.
Adding a domain to the code would make it considerably longer, as now the entire domain would need to be included in the code. And what about games that connect to multiple different servers, or to different subfolders of a server? If the size of the code grows too large, the chance of finding a code cave that's big enough goes down. This is an issue especially for newer games which call SWI functions from the ARM9 binary 0x800 bytes junk area, like Pokémon Black 2/White 2.
Can you give an example of how this would work? How would the URL be changed?
Well, we could do what most other patchers do: Check for all references of nintendowifi.net, and change them to the domain... If the domain is smaller than nintendowifi.net, pad it