diff --git a/daemon.py b/daemon.py
index b67327e4..a91f1a34 100644
--- a/daemon.py
+++ b/daemon.py
@@ -186,7 +186,7 @@ class PubServer(BaseHTTPRequestHandler):
if self.server.debug:
print('DEBUG: WEBFINGER host-meta')
if self.path.startswith('/.well-known/host-meta'):
- wfResult=webfingerMeta()
+ wfResult=webfingerMeta(self.server.httpPrefix,self.server.domainFull)
if wfResult:
msg=wfResult.encode('utf-8')
self._set_headers('application/xrd+xml',len(msg),None)
diff --git a/webfinger.py b/webfinger.py
index d854722d..0d45fe60 100644
--- a/webfinger.py
+++ b/webfinger.py
@@ -140,17 +140,25 @@ def createWebfingerEndpoint(nickname: str,domain: str,port: int, \
}
return account
-def webfingerMeta() -> str:
+def webfingerMeta(httpPrefix: str,domainFull: str) -> str:
+ """Return /.well-known/host-meta
"""
- """
- return "" \
+ return \
+ "" \
+ "" \
+ "" \
+ ""
+
+
+
+"" \
"" \
"" \
- "example.com" \
+ ""+domainFull+"" \
"" \
"" \
+ " template=’"+httpPrefix+"://"+domainFull+"/describe?uri={uri}'>" \
" Resource Descriptor" \
" " \
""