Check that port exists

master
Bob Mottram 2019-08-16 21:04:24 +01:00
parent 55ce8de22b
commit 972bceeafa
1 changed files with 6 additions and 5 deletions

View File

@ -1133,9 +1133,10 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \
if toNickname=='inbox':
sharedInbox=True
if toPort!=80 and toPort!=443:
if ':' not in toDomain:
toDomain=toDomain+':'+str(toPort)
if toPort:
if toPort!=80 and toPort!=443:
if ':' not in toDomain:
toDomain=toDomain+':'+str(toPort)
handle=httpPrefix+'://'+toDomain+'/@'+toNickname
if debug:
@ -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]