Skip to content

Commit 8873138

Browse files
committed
Fixed webserver wrong-host-redirect issue
1 parent 41675b8 commit 8873138

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

XRPLib/webserver.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ def _index_page(self, request):
5454
self._handleUserFunctionRequest(text)
5555
return self._generateHTML()
5656

57+
5758
def _wrong_host_redirect(self, request):
58-
# Captive portal redirects any other host request to self.DOMAIN
59-
body = "<!DOCTYPE html><head><meta http-equiv=\"refresh\" content=\"0;URL='http://"+self.DOMAIN+"'/ /></head>"
60-
logging.info("Redirecting to https://"+self.DOMAIN+"/")
61-
return body
59+
# Catch all sends here. No special behavior really needed, just give them the control page
60+
return self._generateHTML()
6261

6362
def _hotspot(self, request):
6463
# Redirect to Index Page

0 commit comments

Comments
 (0)