From b296803e0109dff569314f29a64d7fd06545c83a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 20 Aug 2014 16:56:59 +0100 Subject: [PATCH] Use int function to cast proxy type --- deluge/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index aa39ca06a..841fe6cf7 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -533,7 +533,7 @@ class Core(component.Component): """Returns the active listen port""" proxy_settings = self.session.proxy() proxy_dict = { - "type": proxy_settings.type.real, + "type": int(proxy_settings.type), "hostname": proxy_settings.hostname, "username": proxy_settings.username, "password": proxy_settings.password,