Beispiel #1
0
def _diagnose_control_port():
    """Diagnose whether Tor control port is open on 127.0.0.1 only."""
    results = []

    addresses = action_utils.get_ip_addresses()
    for address in addresses:
        if address["kind"] != "4":
            continue

        negate = True
        if address["address"] == "127.0.0.1":
            negate = False

        results.append(action_utils.diagnose_netcat(address["address"], 9051, input="QUIT\n", negate=negate))

    return results
Beispiel #2
0
def _diagnose_control_port():
    """Diagnose whether Tor control port is open on 127.0.0.1 only."""
    results = []

    addresses = action_utils.get_ip_addresses()
    for address in addresses:
        if address['kind'] != '4':
            continue

        negate = True
        if address['address'] == '127.0.0.1':
            negate = False

        results.append(action_utils.diagnose_netcat(
            address['address'], 9051, input='QUIT\n', negate=negate))

    return results