Skip to content

Commit

Permalink
Update discover link
Browse files Browse the repository at this point in the history
  • Loading branch information
stackp committed Nov 21, 2013
1 parent 0372690 commit dcbe7ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion droopy
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ errortmpl = '''
'''

linkurltmpl = '''<div id="linkurl" class="box">
<a href="http://stackp.online.fr/droopy-ip.php?port=%(port)d"> %(discover)s
<a href="http://stackp.online.fr/droopy-ip.php?port=%(port)d&ssl=%(ssl)d"> %(discover)s
</a></div>'''


Expand Down Expand Up @@ -664,6 +664,7 @@ class HTTPUploadHandler(BaseHTTPServer.BaseHTTPRequestHandler):
# -- Add a link to discover the url
if self.client_address[0] == "127.0.0.1":
dico["port"] = self.server.server_port
dico["ssl"] = int(certfile is not None)
dico["linkurl"] = linkurltmpl % dico
else:
dico["linkurl"] = ""
Expand Down

0 comments on commit dcbe7ab

Please sign in to comment.