From 1c1d9f1affbd3367bcb24062e261d0ea5d185e3a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 29 May 2021 23:57:58 +0200 Subject: 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 --- lib/hostip.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/hostip.h') 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. -- cgit v1.2.1