From f3dab598fa96debe1fef5cbd99dcaa08de40fa04 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 2 Apr 2013 23:10:42 +0200 Subject: [PATCH] Use poplib constants for default ports --- crackpop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crackpop.py b/crackpop.py index 850b13f..b032da6 100755 --- a/crackpop.py +++ b/crackpop.py @@ -79,7 +79,7 @@ def option_parser(): parser.add_argument( '-P', '--port', metavar="", - dest='port', default=110, + dest='port', default=poplib.POP3_PORT, help='the port the pop3 server is listening on') parser.add_argument( @@ -104,7 +104,7 @@ def option_parser(): parser.add_argument( '-S', '--ssl-port', metavar="", - dest='ssl_port', default=995, + dest='ssl_port', default=poplib.POP3_SSL_PORT, help='the port the SSL pop3 server is listening on') return parser -- 2.1.4