diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-08 23:21:18 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-08 23:21:18 -0500 |
commit | cf2867874149ff6fd6c14b2fd3d842dab37f7a98 (patch) | |
tree | dc4368e3db2ee4eaefcd42c5d8c6564c5b73c13d | |
parent | df3323015005e10f17688bb2b6127884cb2020e4 (diff) | |
download | horizon-cf2867874149ff6fd6c14b2fd3d842dab37f7a98.tar.gz horizon-cf2867874149ff6fd6c14b2fd3d842dab37f7a98.tar.bz2 horizon-cf2867874149ff6fd6c14b2fd3d842dab37f7a98.tar.xz horizon-cf2867874149ff6fd6c14b2fd3d842dab37f7a98.zip |
hscript: - and _ are valid hostname characters
-rw-r--r-- | hscript/meta.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc index 1087ac5..22c5e40 100644 --- a/hscript/meta.cc +++ b/hscript/meta.cc @@ -18,7 +18,7 @@ using namespace Horizon::Keys; Key *Hostname::parseFromData(const std::string data, int lineno, int *errors, int *warnings) { - std::regex valid_re("[A-Za-z0-9.]*"); + std::regex valid_re("[A-Za-z0-9-_.]*"); if(!std::regex_match(data, valid_re)) { if(errors) *errors += 1; output_error("installfile:" + std::to_string(lineno), |