mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
dns_utils: add a const where possible
This commit is contained in:
parent
f43d465da2
commit
ae5f28cb51
@ -343,7 +343,7 @@ DNSResolver DNSResolver::create()
|
||||
return DNSResolver();
|
||||
}
|
||||
|
||||
bool DNSResolver::check_address_syntax(const char *addr)
|
||||
bool DNSResolver::check_address_syntax(const char *addr) const
|
||||
{
|
||||
// if string doesn't contain a dot, we won't consider it a url for now.
|
||||
if (strchr(addr,'.') == NULL)
|
||||
|
@ -137,7 +137,7 @@ private:
|
||||
*
|
||||
* @return true if it looks enough like a URL, false if not
|
||||
*/
|
||||
bool check_address_syntax(const char *addr);
|
||||
bool check_address_syntax(const char *addr) const;
|
||||
|
||||
DNSResolverData *m_data;
|
||||
}; // class DNSResolver
|
||||
|
Loading…
Reference in New Issue
Block a user