From: Antonio Ospite Date: Tue, 2 Apr 2013 21:10:42 +0000 (+0200) Subject: Use poplib constants for default ports X-Git-Url: https://git.ao2.it/crackpop.git/commitdiff_plain/f3dab598fa96debe1fef5cbd99dcaa08de40fa04?ds=inline Use poplib constants for default ports --- 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