Onion domain on about screen

main
Bob Mottram 2020-03-28 10:04:22 +00:00
parent 9b5743159b
commit 71b5e1e57a
1 changed files with 7 additions and 3 deletions

View File

@ -1243,9 +1243,13 @@ class PubServer(BaseHTTPRequestHandler):
self._benchmarkGETtimings(GETstartTime,GETtimings,11)
if self.path.startswith('/about'):
msg=htmlAbout(self.server.baseDir, \
self.server.httpPrefix, \
self.server.domainFull).encode()
if not callingDomain.endswith('.onion'):
msg=htmlAbout(self.server.baseDir, \
self.server.httpPrefix, \
self.server.domainFull).encode()
else:
msg=htmlAbout(self.server.baseDir,'http', \
self.server.onionDomain).encode()
self._login_headers('text/html',len(msg))
self._write(msg)
return