Fix IP allocation
Remove `~ electric` from `valid_mask_len` query