Match net { IpNet::V4(_) => "allow_v4", IpNet::V6(_) => "allow_v6", }; command.See also:Often that happens. /// .Init then.