Extra nodeinfo endpoint

main
Bob Mottram 2021-07-31 21:16:36 +01:00
parent 5c965a57e1
commit 77de16d773
1 changed files with 2 additions and 1 deletions

View File

@ -1049,7 +1049,8 @@ class PubServer(BaseHTTPRequestHandler):
return True return True
self._404() self._404()
return True return True
if self.path.startswith('/.well-known/nodeinfo'): if self.path.startswith('/.well-known/nodeinfo') or \
self.path.startswith('/.well-known/x-nodeinfo'):
if callingDomain.endswith('.onion') and \ if callingDomain.endswith('.onion') and \
self.server.onionDomain: self.server.onionDomain:
wfResult = \ wfResult = \