diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-05-29 23:57:58 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-30 19:49:40 +0200 |
commit | 1c1d9f1affbd3367bcb24062e261d0ea5d185e3a (patch) | |
tree | cebd58fc62fe33c97b6f22d0f03b3d87a65e04ae /lib/hostip.h | |
parent | 9097843e8fe42aa237c3c2087cfde781fbb5b331 (diff) | |
download | curl-1c1d9f1affbd3367bcb24062e261d0ea5d185e3a.tar.gz |
hsts: ignore numberical IP address hosts
Also, use a single function library-wide for detecting if a given hostname is
a numerical IP address.
Reported-by: Harry Sintonen
Fixes #7146
Closes #7149
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index d178976aa..28f3b8401 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -71,6 +71,8 @@ struct Curl_dns_entry { long inuse; }; +bool Curl_host_is_ipnum(const char *hostname); + /* * Curl_resolv() returns an entry with the info for the specified host * and port. |