From 5281244348254317ae92cc1c4fb1ec59e98f49b9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 5 Aug 2021 00:36:10 +0100 Subject: [PATCH] config: Actually parse SERVER Signed-off-by: Ian Jackson --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index 145018a..ca40df0 100644 --- a/src/types.rs +++ b/src/types.rs @@ -43,7 +43,7 @@ impl FromStr for ServerName { ) $"x, s) { throw!(anyhow!("bad syntax for server name")); } - if ! regex_is_match!(r"[a-z-]", s) { + if ! regex_is_match!(r"[A-Za-z-]", s) { throw!(anyhow!("bad syntax for server name \ (too much like an IPv4 address)")); } -- 2.30.2