]> andersk Git - moira.git/commitdiff
don't canonicalize hostnames with '[' in them
authormar <mar>
Thu, 5 Apr 1990 17:45:11 +0000 (17:45 +0000)
committermar <mar>
Thu, 5 Apr 1990 17:45:11 +0000 (17:45 +0000)
lib/fixhost.c

index 1d97d041775900da6ef264f3d7ec8a68192a01ff..dae2acc3057c5464aca63efca08e340331fb426e 100644 (file)
@@ -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);
This page took 0.028758 seconds and 5 git commands to generate.