From 934310499da397587192dda899c2d66023664353 Mon Sep 17 00:00:00 2001 From: mar Date: Thu, 5 Apr 1990 17:45:11 +0000 Subject: [PATCH] don't canonicalize hostnames with '[' in them --- lib/fixhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fixhost.c b/lib/fixhost.c index 1d97d041..dae2acc3 100644 --- a/lib/fixhost.c +++ b/lib/fixhost.c @@ -59,7 +59,7 @@ canonicalize_hostname(host) return(strsave(tbuf)); } - if (index(host, '*') || index(host, '?')) + if (index(host, '*') || index(host, '?') || index(host, '[')) return(host); hp = gethostbyname(host); -- 2.45.2