Use int function to cast proxy type

This commit is contained in:
Calum Lind 2014-08-20 16:56:59 +01:00
parent 68b893fa02
commit b296803e01

View File

@ -533,7 +533,7 @@ class Core(component.Component):
"""Returns the active listen port""" """Returns the active listen port"""
proxy_settings = self.session.proxy() proxy_settings = self.session.proxy()
proxy_dict = { proxy_dict = {
"type": proxy_settings.type.real, "type": int(proxy_settings.type),
"hostname": proxy_settings.hostname, "hostname": proxy_settings.hostname,
"username": proxy_settings.username, "username": proxy_settings.username,
"password": proxy_settings.password, "password": proxy_settings.password,