resolve: do not set IP_TTL for extra DNS stub listeners

This commit is contained in:
Yu Watanabe
2020-09-04 23:53:22 +09:00
parent 180c22328b
commit d40f00d798
+2 -3
View File
@@ -652,9 +652,8 @@ static int manager_dns_stub_tcp_fd_extra(Manager *m, DNSStubListenerExtra *l) {
if (r < 0)
goto fail;
r = setsockopt_int(fd, IPPROTO_IP, IP_TTL, 1);
if (r < 0)
goto fail;
/* Do not set IP_TTL for extra DNS stub listners, as the address may not be local and in that
* case people may want ttl > 1. */
r = setsockopt_int(fd, IPPROTO_IP, IP_FREEBIND, true);
if (r < 0)