mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
4f62625a4b
commit
aca221a57c
10
daemon.py
10
daemon.py
|
@ -22,7 +22,7 @@ from hashlib import sha256
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
from session import create_session
|
from session import create_session
|
||||||
from webfinger import webfingerMeta
|
from webfinger import webfinger_meta
|
||||||
from webfinger import webfingerNodeInfo
|
from webfinger import webfingerNodeInfo
|
||||||
from webfinger import webfingerLookup
|
from webfinger import webfingerLookup
|
||||||
from webfinger import webfingerUpdate
|
from webfinger import webfingerUpdate
|
||||||
|
@ -1182,15 +1182,15 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if calling_domain.endswith('.onion') and \
|
if calling_domain.endswith('.onion') and \
|
||||||
self.server.onion_domain:
|
self.server.onion_domain:
|
||||||
wfResult = \
|
wfResult = \
|
||||||
webfingerMeta('http', self.server.onion_domain)
|
webfinger_meta('http', self.server.onion_domain)
|
||||||
elif (calling_domain.endswith('.i2p') and
|
elif (calling_domain.endswith('.i2p') and
|
||||||
self.server.i2p_domain):
|
self.server.i2p_domain):
|
||||||
wfResult = \
|
wfResult = \
|
||||||
webfingerMeta('http', self.server.i2p_domain)
|
webfinger_meta('http', self.server.i2p_domain)
|
||||||
else:
|
else:
|
||||||
wfResult = \
|
wfResult = \
|
||||||
webfingerMeta(self.server.http_prefix,
|
webfinger_meta(self.server.http_prefix,
|
||||||
self.server.domain_full)
|
self.server.domain_full)
|
||||||
if wfResult:
|
if wfResult:
|
||||||
msg = wfResult.encode('utf-8')
|
msg = wfResult.encode('utf-8')
|
||||||
msglen = len(msg)
|
msglen = len(msg)
|
||||||
|
|
|
@ -195,7 +195,7 @@ def webfingerNodeInfo(http_prefix: str, domain_full: str) -> {}:
|
||||||
return nodeinfo
|
return nodeinfo
|
||||||
|
|
||||||
|
|
||||||
def webfingerMeta(http_prefix: str, domain_full: str) -> str:
|
def webfinger_meta(http_prefix: str, domain_full: str) -> str:
|
||||||
"""Return /.well-known/host-meta
|
"""Return /.well-known/host-meta
|
||||||
"""
|
"""
|
||||||
metaStr = \
|
metaStr = \
|
||||||
|
|
Loading…
Reference in New Issue