forked from indymedia/epicyon
Set port 443 if https active
parent
c24dfc6347
commit
102837bcc2
|
@ -250,7 +250,9 @@ if args.http:
|
||||||
if args.posts:
|
if args.posts:
|
||||||
if '@' not in args.posts:
|
if '@' not in args.posts:
|
||||||
print('Syntax: --posts nickname@domain')
|
print('Syntax: --posts nickname@domain')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
if not args.http:
|
||||||
|
args.port=443
|
||||||
nickname=args.posts.split('@')[0]
|
nickname=args.posts.split('@')[0]
|
||||||
domain=args.posts.split('@')[1]
|
domain=args.posts.split('@')[1]
|
||||||
getPublicPostsOfPerson(nickname,domain,False,True, \
|
getPublicPostsOfPerson(nickname,domain,False,True, \
|
||||||
|
@ -261,6 +263,8 @@ if args.postsraw:
|
||||||
if '@' not in args.postsraw:
|
if '@' not in args.postsraw:
|
||||||
print('Syntax: --postsraw nickname@domain')
|
print('Syntax: --postsraw nickname@domain')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
if not args.http:
|
||||||
|
args.port=443
|
||||||
nickname=args.postsraw.split('@')[0]
|
nickname=args.postsraw.split('@')[0]
|
||||||
domain=args.postsraw.split('@')[1]
|
domain=args.postsraw.split('@')[1]
|
||||||
getPublicPostsOfPerson(nickname,domain,False,False, \
|
getPublicPostsOfPerson(nickname,domain,False,False, \
|
||||||
|
|
Loading…
Reference in New Issue