mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
When asking for a specific address type, others aren't acceptable
This commit is contained in:
parent
d276894772
commit
93591383a9
@ -1168,6 +1168,10 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
|
||||
"no IPv4 traffic supported.");
|
||||
connection_mark_unattached_ap(conn, END_STREAM_REASON_ENTRYPOLICY);
|
||||
return -1;
|
||||
} else if (family == AF_INET6) {
|
||||
conn->ipv4_traffic_ok = 0;
|
||||
} else if (family == AF_INET) {
|
||||
conn->ipv6_traffic_ok = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user