diff options
author | Tom Gundersen <teg@jklm.no> | 2015-07-25 04:38:25 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-07-27 19:56:45 +0200 |
commit | 86ad4cd709ced8daf2b75ab564dece1ce82ffed9 (patch) | |
tree | d2c527da44b5f00a1b50bf7bd1e0bc00977f43b3 /src/resolve/resolved-manager.c | |
parent | 0eb99d0a6a7d28a16e739b3a0e4900b9e4dc76f9 (diff) |
resolved: transaction - don't request PKTINFO for unicast DNS
This was only ever used by LLMNR, so don't request this for unicast DNS packets.
Diffstat (limited to 'src/resolve/resolved-manager.c')
-rw-r--r-- | src/resolve/resolved-manager.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index 17de14bae1..9fda64ba39 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -912,10 +912,12 @@ int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret) { if (p->ifindex == LOOPBACK_IFINDEX) p->ifindex = 0; - /* If we don't know the interface index still, we look for the - * first local interface with a matching address. Yuck! */ - if (p->ifindex <= 0) - p->ifindex = manager_find_ifindex(m, p->family, &p->destination); + if (protocol != DNS_PROTOCOL_DNS) { + /* If we don't know the interface index still, we look for the + * first local interface with a matching address. Yuck! */ + if (p->ifindex <= 0) + p->ifindex = manager_find_ifindex(m, p->family, &p->destination); + } *ret = p; p = NULL; |