commit 56fb1ccad86422b7b083d72d1595f89a0aaee4d5
parent 802c35f9373914510a0b02ab37bb59a58b01c028
Author: parazyd <parazyd@dyne.org>
Date: Wed, 2 Jan 2019 14:59:01 +0100
Remove tcp(s) check from rpsync.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/rpsync b/bin/rpsync
@@ -39,9 +39,9 @@ def parsecfg():
def imapconnect(host, port):
""" Abstraction layer for an IMAP connection """
- if port == 'tcp' or port == 'imap' or port == 143:
+ if port == 'imap' or port == 143:
return IMAP4(host=host, port=port)
- elif port == 'tcps' or port == 'imaps' or port == 993:
+ elif port == 'imaps' or port == 993:
return IMAP4_SSL(host=host, port=port)
print('Invalid host and port: %s:%s' % (host, port))