diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-06 17:58:35 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-12-06 17:58:35 +0100 |
commit | 2756fb24ee1f4a91ef05bcd260ea9429481d2202 (patch) | |
tree | df03e843709480e9e2e5f27e5ddeded66829a76b /src/network/networkd-state-file.c | |
parent | fix DirectoryNotEmpty when it comes to a Non-directory file (diff) | |
download | systemd-2756fb24ee1f4a91ef05bcd260ea9429481d2202.tar.xz systemd-2756fb24ee1f4a91ef05bcd260ea9429481d2202.zip |
network: state-file: honor dhcp6_use_domains flag
Diffstat (limited to 'src/network/networkd-state-file.c')
-rw-r--r-- | src/network/networkd-state-file.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd-state-file.c b/src/network/networkd-state-file.c index 7a0abc5f5b..c8b491ac1a 100644 --- a/src/network/networkd-state-file.c +++ b/src/network/networkd-state-file.c @@ -564,6 +564,9 @@ int link_save(Link *link) { fputs_with_space(f, dhcp_domainname, NULL, &space); if (dhcp_domains) fputstrv(f, dhcp_domains, NULL, &space); + } + + if (link->network->dhcp6_use_domains == DHCP_USE_DOMAINS_YES) { if (dhcp6_domains) fputstrv(f, dhcp6_domains, NULL, &space); } @@ -589,6 +592,9 @@ int link_save(Link *link) { fputs_with_space(f, dhcp_domainname, NULL, &space); if (dhcp_domains) fputstrv(f, dhcp_domains, NULL, &space); + } + + if (link->network->dhcp6_use_domains == DHCP_USE_DOMAINS_ROUTE) { if (dhcp6_domains) fputstrv(f, dhcp6_domains, NULL, &space); } |