Skip to content

Commit

Permalink
resolve: do not listen to IPv6 when disabled by sysctl
Browse files Browse the repository at this point in the history
Fixes #30669.
  • Loading branch information
yuwata committed Jan 2, 2024
1 parent e40a678 commit a53082f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resolve/resolved-llmnr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/resolve/resolved-mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a53082f

Please sign in to comment.