- append args "--dhcp-host=$mac,${networkid:+net:$networkid,}$ip${name:+,$name}"
+ macs=""
+ config_get mac "$cfg" mac
+ for m in $mac; do append macs "$m" ","; done
+ [ -n "$macs" ] || return 0
+
+ append args "--dhcp-host=$macs,${networkid:+net:$networkid,}$ip${name:+,$name}"