'Get the anon proxy settings.
:return: a 4-tuple with the proxytype in int, (ip as string, list of ports in int), auth'

def get_anon_proxy_settings(self):

    server_ports = self.config['libtorrent']['anon_proxy_server_ports']
    return (self.config['libtorrent']['anon_proxy_type'], (self.config['libtorrent']['anon_proxy_server_ip'], ([int(s) for s in server_ports] if server_ports else None)), self.config['libtorrent']['anon_proxy_auth'])
