You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/01/05 20:26:11 UTC

[trafficserver] branch 9.2.x updated: Relax key validation of sni.yaml (#8549)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new 39e33fc  Relax key validation of sni.yaml (#8549)
39e33fc is described below

commit 39e33fc0bab3196de7dcfcabe970de036f12dae3
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Thu Dec 16 10:32:12 2021 +0900

    Relax key validation of sni.yaml (#8549)
    
    (cherry picked from commit a13fd3da532eae1261cec3185a7041228dcd4131)
---
 iocore/net/YamlSNIConfig.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/net/YamlSNIConfig.cc b/iocore/net/YamlSNIConfig.cc
index cadeb77..a5d2778 100644
--- a/iocore/net/YamlSNIConfig.cc
+++ b/iocore/net/YamlSNIConfig.cc
@@ -158,7 +158,7 @@ template <> struct convert<YamlSNIConfig::Item> {
     for (const auto &elem : node) {
       if (std::none_of(valid_sni_config_keys.begin(), valid_sni_config_keys.end(),
                        [&elem](const std::string &s) { return s == elem.first.as<std::string>(); })) {
-        throw YAML::ParserException(elem.first.Mark(), "unsupported key " + elem.first.as<std::string>());
+        Warning("unsupported key '%s' in SNI config", elem.first.as<std::string>().c_str());
       }
     }