git://developer.intra2net.com
/
pingcheck
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
merged PingRotate into PingScheduler; fixed save/load of cache to/from file; started...
[pingcheck]
/
src
/
dns
/
hostaddress.cpp
diff --git
a/src/dns/hostaddress.cpp
b/src/dns/hostaddress.cpp
index
ebc01ad
..
2879090
100644
(file)
--- a/
src/dns/hostaddress.cpp
+++ b/
src/dns/hostaddress.cpp
@@
-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();
+}