projects
/
crackpop.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b903e6e
)
Use poplib constants for default ports
author
Antonio Ospite <ospite@studenti.unina.it>
Tue, 2 Apr 2013 21:10:42 +0000
(23:10 +0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Tue, 2 Apr 2013 21:10:42 +0000
(23:10 +0200)
crackpop.py
patch
|
blob
|
history
diff --git
a/crackpop.py
b/crackpop.py
index
850b13f
..
b032da6
100755
(executable)
--- a/
crackpop.py
+++ b/
crackpop.py
@@
-79,7
+79,7
@@
def option_parser():
parser.add_argument(
'-P', '--port', metavar="<port>",
parser.add_argument(
'-P', '--port', metavar="<port>",
- dest='port', default=
110
,
+ dest='port', default=
poplib.POP3_PORT
,
help='the port the pop3 server is listening on')
parser.add_argument(
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="<ssl_port>",
parser.add_argument(
'-S', '--ssl-port', metavar="<ssl_port>",
- 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
help='the port the SSL pop3 server is listening on')
return parser