Merge pull request #30691 from yuwata/resolve-ipv6
resolve: do not listen to IPv6 when disabled by sysctl
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -15,7 +15,7 @@ Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-
|
||||
Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
|
||||
|
||||
DefaultDependencies=no
|
||||
After=systemd-sysusers.service
|
||||
After=systemd-sysctl.service systemd-sysusers.service
|
||||
Before=sysinit.target network.target nss-lookup.target shutdown.target initrd-switch-root.target
|
||||
Conflicts=shutdown.target initrd-switch-root.target
|
||||
Wants=nss-lookup.target
|
||||
|
||||
Reference in New Issue
Block a user