]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: fix promote_secondaries logic
authorHristo Venev <hristo@venev.name>
Tue, 5 Dec 2017 14:49:00 +0000 (16:49 +0200)
committerHristo Venev <hristo@venev.name>
Tue, 5 Dec 2017 14:56:52 +0000 (16:56 +0200)
The value for `default` has no influence at all.

src/network/networkd-dhcp4.c

index cacd867f9b006529ad9aff155d4497895183e79e..5ce03e5d40cb07490667f62ea5b0d893ebe71109 100644 (file)
@@ -627,7 +627,7 @@ int dhcp4_set_promote_secondaries(Link *link) {
          * interface. If it is not globally enabled or enabled for the
          * specific interface we must either enable it.
          */
-        if (!(promote_secondaries_enabled("all") || promote_secondaries_enabled("default") || promote_secondaries_enabled(link->ifname))) {
+        if (!(promote_secondaries_enabled("all") || promote_secondaries_enabled(link->ifname))) {
                 char *promote_secondaries_path = NULL;
 
                 log_link_debug(link, "promote_secondaries is unset, setting it");