mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Merge remote-tracking branch 'public/bug10468_024'
This commit is contained in:
commit
86f619d0d3
4
changes/bug10468
Normal file
4
changes/bug10468
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes:
|
||||||
|
- When using DNSPort and AutomapHostsOnResolve, respond to AAAA
|
||||||
|
requests with AAAA automapped answers. Fixes bug 10468; bugfix
|
||||||
|
on 0.2.4.7-alpha.
|
@ -131,6 +131,16 @@ evdns_server_callback(struct evdns_server_request *req, void *data_)
|
|||||||
else
|
else
|
||||||
entry_conn->socks_request->command = SOCKS_COMMAND_RESOLVE_PTR;
|
entry_conn->socks_request->command = SOCKS_COMMAND_RESOLVE_PTR;
|
||||||
|
|
||||||
|
if (q->type == EVDNS_TYPE_A) {
|
||||||
|
entry_conn->ipv4_traffic_ok = 1;
|
||||||
|
entry_conn->ipv6_traffic_ok = 0;
|
||||||
|
entry_conn->prefer_ipv6_traffic = 0;
|
||||||
|
} else if (q->type == EVDNS_TYPE_AAAA) {
|
||||||
|
entry_conn->ipv4_traffic_ok = 0;
|
||||||
|
entry_conn->ipv6_traffic_ok = 1;
|
||||||
|
entry_conn->prefer_ipv6_traffic = 1;
|
||||||
|
}
|
||||||
|
|
||||||
strlcpy(entry_conn->socks_request->address, q->name,
|
strlcpy(entry_conn->socks_request->address, q->name,
|
||||||
sizeof(entry_conn->socks_request->address));
|
sizeof(entry_conn->socks_request->address));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user