chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
665d118
)
config: Actually parse SERVER
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 23:36:10 +0000
(
00:36
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 23:36:10 +0000
(
00:36
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/types.rs
patch
|
blob
|
history
diff --git
a/src/types.rs
b/src/types.rs
index 145018a21e74a4714171aa537d79ba0ecc82d892..ca40df004558c07e395934b75ab3a1350087ed32 100644
(file)
--- 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-Z
a-z-]", s) {
throw!(anyhow!("bad syntax for server name \
(too much like an IPv4 address)"));
}