Land #11061, allow the possibilty of empty string values for datastore options in msf5
commit
1bf93ab1bc
|
@ -31,7 +31,7 @@ class OptString < OptBase
|
|||
def valid?(value=self.value, check_empty: true)
|
||||
value = normalize(value)
|
||||
return false if check_empty && empty_required_value?(value)
|
||||
return super
|
||||
return super(check_empty: false)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue