mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
Set http[s] as appropriate for the singleuser url
This commit is contained in:
@@ -422,7 +422,8 @@ class User:
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# >= 0.7 returns (ip, port)
|
# >= 0.7 returns (ip, port)
|
||||||
url = 'http://%s:%i' % url
|
proto = 'https' if self.settings['internal_ssl'] else 'http'
|
||||||
|
url = '%s://%s:%i' % ((proto,) + url)
|
||||||
urlinfo = urlparse(url)
|
urlinfo = urlparse(url)
|
||||||
server.proto = urlinfo.scheme
|
server.proto = urlinfo.scheme
|
||||||
server.ip = urlinfo.hostname
|
server.ip = urlinfo.hostname
|
||||||
|
Reference in New Issue
Block a user