summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-25 04:17:21 -0400
committerAdam <Adam@anope.org>2011-04-25 04:17:21 -0400
commit4a733c93d45e0ca5d757abf826d65bc1cbaf610e (patch)
treee09f093a9926b4285ea1d33da93828ddd5b6bbcb /include
parent03d2378a9fc2fdc868ee4476597ec1901242a0c5 (diff)
Don't attempt to connect to the uplink if given invalid hostnames
Diffstat (limited to 'include')
-rw-r--r--include/dns.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dns.h b/include/dns.h
index c95cc64de..17d69ecb1 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -130,9 +130,11 @@ struct DNSRecord
/* Record length */
unsigned short rdlength;
- inline DNSRecord(const Anope::string &n);
/* When this record was created in our cache */
time_t created;
+
+ inline DNSRecord(const Anope::string &n);
+ operator bool() const;
};
/** The socket used to talk to the nameserver, uses UDP