Unciv icon indicating copy to clipboard operation
Unciv copied to clipboard

Feature request: Update Multiplayer Server Endpoint on Redirection

Open touhidurrr opened this issue 1 year ago • 0 comments

This behaviour includes:

  1. If host.example.com/isalive redirects to any url that ends with /isalive than replace multiplayerServerUrl with part of the url before /isalive

     example:
         redirect: example.com/isalive -> example.com/api/isalive
         new url to replace with: example.com/api
    
  2. Similarly replace multiplayerServerUrl for hostname/files/:filename too

  3. Don't replace if url doesn’t ends with same path. Eg. /isalive or /files/:fileName

  4. Don't allow replacing if fileName doesn’t match.

This will allow community server owners to change their hostname easily without negatively affecting players for special circumstances.

touhidurrr avatar Jun 16 '22 11:06 touhidurrr