mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Fix build on FreeBSD.
This commit is contained in:
parent
bb207da70d
commit
217f5a094a
@ -71,12 +71,12 @@ public:
|
||||
/// For example, 312.234.1.1/255.255.255.0 or 2a02:6b8::3/64
|
||||
void addSubnet(const IPSubnet & subnet);
|
||||
void addSubnet(const String & subnet) { addSubnet(IPSubnet{subnet}); }
|
||||
void addSubnet(const IPAddress & prefix, const IPAddress & mask) { addSubnet({prefix, mask}); }
|
||||
void addSubnet(const IPAddress & prefix, size_t num_prefix_bits) { addSubnet({prefix, num_prefix_bits}); }
|
||||
void addSubnet(const IPAddress & prefix, const IPAddress & mask) { addSubnet(IPSubnet{prefix, mask}); }
|
||||
void addSubnet(const IPAddress & prefix, size_t num_prefix_bits) { addSubnet(IPSubnet{prefix, num_prefix_bits}); }
|
||||
void removeSubnet(const IPSubnet & subnet);
|
||||
void removeSubnet(const String & subnet) { removeSubnet(IPSubnet{subnet}); }
|
||||
void removeSubnet(const IPAddress & prefix, const IPAddress & mask) { removeSubnet({prefix, mask}); }
|
||||
void removeSubnet(const IPAddress & prefix, size_t num_prefix_bits) { removeSubnet({prefix, num_prefix_bits}); }
|
||||
void removeSubnet(const IPAddress & prefix, const IPAddress & mask) { removeSubnet(IPSubnet{prefix, mask}); }
|
||||
void removeSubnet(const IPAddress & prefix, size_t num_prefix_bits) { removeSubnet(IPSubnet{prefix, num_prefix_bits}); }
|
||||
const std::vector<IPSubnet> & getSubnets() const { return subnets; }
|
||||
|
||||
/// Allows an exact host name. The `contains()` function will check that the provided address equals to one of that host's addresses.
|
||||
|
Loading…
Reference in New Issue
Block a user