'Create a single proxy and load the tunnel community in the session of that proxy.'

@inlineCallbacks
def create_proxy(self, index, exitnode=False):

    from Tribler.Core.Session import Session
    self.setUpPreSession()
    config = self.config.copy()
    config.set_libtorrent_enabled(True)
    config.set_dispersy_enabled(True)
    config.set_state_dir(self.getStateDir(index))
    config.set_tunnel_community_socks5_listen_ports(self.get_socks5_ports())
    session = Session(config, ignore_singleton=True, autoload_discovery=False)
    (yield session.start())
    self.sessions.append(session)
    returnValue(self.load_tunnel_community_in_session(session, exitnode=exitnode))
