mirror of https://gitlab.com/bashrc2/epicyon
Check for missing onion domain
parent
a71c548a7f
commit
079c724bb9
|
@ -859,8 +859,7 @@ configOnionDomain = getConfigParam(baseDir, 'onion')
|
||||||
if configOnionDomain:
|
if configOnionDomain:
|
||||||
onionDomain = configOnionDomain
|
onionDomain = configOnionDomain
|
||||||
else:
|
else:
|
||||||
# Note: this should not be None
|
onionDomain = None
|
||||||
onionDomain = ''
|
|
||||||
|
|
||||||
# get i2p domain name from configuration
|
# get i2p domain name from configuration
|
||||||
configi2pDomain = getConfigParam(baseDir, 'i2pDomain')
|
configi2pDomain = getConfigParam(baseDir, 'i2pDomain')
|
||||||
|
@ -869,7 +868,6 @@ if configi2pDomain:
|
||||||
else:
|
else:
|
||||||
# Note: this should not be None
|
# Note: this should not be None
|
||||||
i2pDomain = None
|
i2pDomain = None
|
||||||
onionDomain = ''
|
|
||||||
|
|
||||||
# get port number from configuration
|
# get port number from configuration
|
||||||
configPort = getConfigParam(baseDir, 'port')
|
configPort = getConfigParam(baseDir, 'port')
|
||||||
|
|
7
inbox.py
7
inbox.py
|
@ -1370,8 +1370,11 @@ def _receiveAnnounce(recentPostsCache: {},
|
||||||
YTReplacementDomain,
|
YTReplacementDomain,
|
||||||
allowLocalNetworkAccess)
|
allowLocalNetworkAccess)
|
||||||
if not postJsonObject:
|
if not postJsonObject:
|
||||||
if domain not in messageJson['object'] and \
|
notInOnion = True
|
||||||
onionDomain not in messageJson['object']:
|
if onionDomain:
|
||||||
|
if onionDomain in messageJson['object']:
|
||||||
|
notInOnion = False
|
||||||
|
if domain not in messageJson['object'] and notInOnion:
|
||||||
if os.path.isfile(postFilename):
|
if os.path.isfile(postFilename):
|
||||||
# if the announce can't be downloaded then remove it
|
# if the announce can't be downloaded then remove it
|
||||||
os.remove(postFilename)
|
os.remove(postFilename)
|
||||||
|
|
Loading…
Reference in New Issue