Set port 443 if https active

master
Bob Mottram 2019-07-19 17:59:14 +01:00
parent c24dfc6347
commit 102837bcc2
1 changed files with 5 additions and 1 deletions

View File

@ -251,6 +251,8 @@ if args.posts:
if '@' not in args.posts:
print('Syntax: --posts nickname@domain')
sys.exit()
if not args.http:
args.port=443
nickname=args.posts.split('@')[0]
domain=args.posts.split('@')[1]
getPublicPostsOfPerson(nickname,domain,False,True, \
@ -261,6 +263,8 @@ if args.postsraw:
if '@' not in args.postsraw:
print('Syntax: --postsraw nickname@domain')
sys.exit()
if not args.http:
args.port=443
nickname=args.postsraw.split('@')[0]
domain=args.postsraw.split('@')[1]
getPublicPostsOfPerson(nickname,domain,False,False, \