forked from indymedia/epicyon
Check that port exists
parent
55ce8de22b
commit
972bceeafa
3
posts.py
3
posts.py
|
@ -1133,6 +1133,7 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \
|
|||
if toNickname=='inbox':
|
||||
sharedInbox=True
|
||||
|
||||
if toPort:
|
||||
if toPort!=80 and toPort!=443:
|
||||
if ':' not in toDomain:
|
||||
toDomain=toDomain+':'+str(toPort)
|
||||
|
@ -1194,7 +1195,7 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \
|
|||
|
||||
if toDomain not in inboxUrl:
|
||||
if debug:
|
||||
print('DEBUG: '+toDomain+' not in '+inboxUrl)
|
||||
print('DEBUG: '+toDomain+' is not in '+inboxUrl)
|
||||
return 7
|
||||
postPath='/'+inboxUrl.split('/')[-1]
|
||||
|
||||
|
|
Loading…
Reference in New Issue