addnil to remove option

This commit is contained in:
Christian Goll
2022-06-08 16:20:17 +02:00
parent 04551ef264
commit 28de9f5220

View File

@@ -57,7 +57,7 @@ func (ent *Entry) Set(val string) {
return
}
if val == "UNDEF" || val == "DELETE" || val == "UNSET" || val == "--" {
if val == "UNDEF" || val == "DELETE" || val == "UNSET" || val == "--" || val == "nil" {
wwlog.Debug("Removing value for %v\n", *ent)
ent.value = []string{""}
} else {