From 4a733c93d45e0ca5d757abf826d65bc1cbaf610e Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 25 Apr 2011 04:17:21 -0400 Subject: Don't attempt to connect to the uplink if given invalid hostnames --- include/dns.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit