bind: Fix ipv6 detection logic
authorRucke Teg <redacted>
Thu, 2 Feb 2023 19:59:07 +0000 (20:59 +0100)
committerNoah Meyerhans <redacted>
Sun, 5 Feb 2023 17:05:30 +0000 (09:05 -0800)
Bug was introduced in a7b770eec4370087a5ccd27887386dac9266214e and
results in bind always stating with the `-4` flag.

Signed-off-by: Rucke Teg <redacted>
net/bind/files/named.init

index 312e297fb4b8ff1112d185742bf2c3c830afb3e8..288d8f88545e6176f83f9871c1635ffbcf3789d7 100644 (file)
@@ -73,7 +73,7 @@ start_service() {
     touch $conf_local_file
 
     local args=
-    [ no_ipv6 ] && args="-4"
+    no_ipv6 && args="-4"
 
     procd_open_instance
     procd_set_param command /usr/sbin/named -u bind -f $args -c $config_file
git clone https://git.99rst.org/PROJECT