1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

resolve: do not listen to IPv6 when disabled by sysctl

Fixes #30669.
This commit is contained in:
Yu Watanabe 2024-01-03 04:03:25 +09:00
parent e40a67809b
commit a53082f07d
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ int manager_llmnr_start(Manager *m) {
if (r < 0)
return r;
if (socket_ipv6_is_supported()) {
if (socket_ipv6_is_enabled()) {
r = manager_llmnr_ipv6_udp_fd(m);
if (r == -EADDRINUSE)
goto eaddrinuse;

View File

@ -36,7 +36,7 @@ int manager_mdns_start(Manager *m) {
if (r < 0)
return r;
if (socket_ipv6_is_supported()) {
if (socket_ipv6_is_enabled()) {
r = manager_mdns_ipv6_fd(m);
if (r == -EADDRINUSE)
goto eaddrinuse;