merged PingRotate into PingScheduler; fixed save/load of cache to/from file; started...
[pingcheck] / src / dns / hostaddress.cpp
index ebc01ad..2879090 100644 (file)
@@ -72,3 +72,9 @@ void HostAddress::set_ttl( const TimeToLive &ttl )
 {
     Ttl = ttl;
 }
+
+bool HostAddress::is_valid() const
+{
+    return Ip == address() || Ip == boost::asio::ip::address_v4()
+                           || Ip == boost::asio::ip::address_v6();
+}