From 102837bcc2e2b91c73aec57f846f3910d464a6d4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 19 Jul 2019 17:59:14 +0100 Subject: [PATCH] Set port 443 if https active --- epicyon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/epicyon.py b/epicyon.py index 8c94a566..36e71f1b 100644 --- a/epicyon.py +++ b/epicyon.py @@ -250,7 +250,9 @@ if args.http: if args.posts: if '@' not in args.posts: print('Syntax: --posts nickname@domain') - sys.exit() + 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, \