diff options
| author | Adam <Adam@anope.org> | 2011-04-25 04:17:21 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-04-25 04:17:21 -0400 |
| commit | 4a733c93d45e0ca5d757abf826d65bc1cbaf610e (patch) | |
| tree | e09f093a9926b4285ea1d33da93828ddd5b6bbcb /include | |
| parent | 03d2378a9fc2fdc868ee4476597ec1901242a0c5 (diff) | |
Don't attempt to connect to the uplink if given invalid hostnames
Diffstat (limited to 'include')
| -rw-r--r-- | include/dns.h | 4 |
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 |
