From fdf88d997f30bc2f846ce8ec25666269fb79c4c7 Mon Sep 17 00:00:00 2001 From: thoffma Date: Sun, 18 Jan 2015 22:52:00 +0100 Subject: [PATCH] fixed subtl.py from trying to parse a port string as integer --- src/lib/subtl/subtl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/subtl/subtl.py b/src/lib/subtl/subtl.py index 3f8c47aa..de2c913c 100644 --- a/src/lib/subtl/subtl.py +++ b/src/lib/subtl/subtl.py @@ -70,6 +70,9 @@ class UdpTrackerClient: # Check and raise if missing fields self._check_fields(args, fields) + # Convert argument port from string to integer for correct struct.pack execution + args['port'] = int(args['port']) + # Humans tend to use hex representations of the hash. Wasteful humans. args['info_hash'] = norm_info_hash(args['info_hash'])