Beispiel #1
0
def checkClientMode():
    """ Checks to see if the daemon has been launched in client mode or server mode. Returns True if it is in client mode, otherwise False. """

    try:
        c = Config()
        return c.checkClientMode()
    except EnvException:
        return False
Beispiel #2
0
def checkClientMode(): # XXX WTF!???! This also exists in config.py.
    """
    Check whether Tor wants us to run as a client or as a server.

    :returns: bool -- True if Tor wants us to run as a client.
    """
    try:
        c = Config()
        return c.checkClientMode()
    except EnvError:
        return False