Let counter = match net { IpNet::V4(_) => "allow_v4.

/// gather and serialize the metrics to [`Self::persist_path`]. /// /// If enabled.