diff options
author | msoulier <msoulier@63283fd4-ec1e-0410-9879-cb7f675518da> | 2006-10-05 16:38:33 +0000 |
---|---|---|
committer | msoulier <msoulier@63283fd4-ec1e-0410-9879-cb7f675518da> | 2006-10-05 16:38:33 +0000 |
commit | e771f670fb35d07c0d5267e9ecccdb394212f9ee (patch) | |
tree | ceadf8ba130062b34f917c341b477b0fca8573ee /bin | |
parent | cb75a4b2815035012915014aa8ce658ad47e71d4 (diff) | |
download | tftpy-e771f670fb35d07c0d5267e9ecccdb394212f9ee.tar.gz |
Fixed handling of port
git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@17 63283fd4-ec1e-0410-9879-cb7f675518da
Diffstat (limited to 'bin')
-rw-r--r-- | bin/tftpy_client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/tftpy_client.py b/bin/tftpy_client.py index f253ee9..3cbae34 100644 --- a/bin/tftpy_client.py +++ b/bin/tftpy_client.py @@ -29,6 +29,7 @@ def main(): dest='blocksize', help='udp packet size to use (default: 512)', default=512) + # FIXME - default should be same as --filename parser.add_option('-o', '--output', action='store', @@ -57,7 +58,7 @@ def main(): tftp_options['blksize'] = int(options.blocksize) tclient = tftpy.TftpClient(options.host, - options.port, + int(options.port), tftp_options) tclient.download(options.filename, |