forked from indymedia/epicyon
TOS screen uses onion address
parent
b2e44d4129
commit
582ef93556
|
@ -1260,9 +1260,15 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._benchmarkGETtimings(GETstartTime,GETtimings,10)
|
self._benchmarkGETtimings(GETstartTime,GETtimings,10)
|
||||||
|
|
||||||
if self.path.startswith('/terms'):
|
if self.path.startswith('/terms'):
|
||||||
|
if not callingDomain.endswith('.onion') or \
|
||||||
|
not self.server.onionDomain:
|
||||||
msg=htmlTermsOfService(self.server.baseDir, \
|
msg=htmlTermsOfService(self.server.baseDir, \
|
||||||
self.server.httpPrefix, \
|
self.server.httpPrefix, \
|
||||||
self.server.domainFull).encode()
|
self.server.domainFull).encode()
|
||||||
|
else:
|
||||||
|
msg=htmlTermsOfService(self.server.baseDir, \
|
||||||
|
self.server.httpPrefix, \
|
||||||
|
self.server.onionDomain).encode()
|
||||||
self._login_headers('text/html',len(msg),callingDomain)
|
self._login_headers('text/html',len(msg),callingDomain)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue