diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2025-01-02 18:30:21 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2025-01-03 09:22:45 +0100 |
commit | 2976730a4d34749bfb7a88da341464f1834ab1c6 (patch) | |
tree | 8685744fb94a866ea8eb34a6ab06bb9546a011f3 /src/resolve | |
parent | Correct ACCEL_MOUNT_MATRIX for Chuwi Hi10 Max (diff) | |
download | systemd-2976730a4d34749bfb7a88da341464f1834ab1c6.tar.xz systemd-2976730a4d34749bfb7a88da341464f1834ab1c6.zip |
resolved: stop mdns/lnrr when config changes to disabled on reload
Currently on reload mdns/lnrr are enabled if they were disabled,
but not viceversa. Fix it.
Follow-up for 14a52176798bc2d013297b503ac6fa49a64e2725
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-link.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c index 928137b967..067a0813ec 100644 --- a/src/resolve/resolved-link.c +++ b/src/resolve/resolved-link.c @@ -651,13 +651,16 @@ int link_update(Link *l) { r = manager_llmnr_start(l->manager); if (r < 0) return r; - } + } else + manager_llmnr_stop(l->manager); + if (link_get_mdns_support(l) != RESOLVE_SUPPORT_NO) { r = manager_mdns_start(l->manager); if (r < 0) return r; - } + } else + manager_mdns_stop(l->manager); link_allocate_scopes(l); link_add_rrs(l, false); |