diff --git a/src/crypto/TSL.cpp b/src/crypto/TSL.cpp index 61f371fb6..0149233b5 100644 --- a/src/crypto/TSL.cpp +++ b/src/crypto/TSL.cpp @@ -104,10 +104,12 @@ TSL::TSL(string file) WARN("Failed to parse configuration: %s", path.c_str()); } -bool TSL::activate(const string &territory) +bool TSL::activate(string territory) { if(territory.size() != 2) return false; + if(territory == "GR") + territory = "EL"; // Greece is EL in EU TL string cache = CONF(TSLCache); string path = cache + '/' + territory + ".xml"; if(File::fileExists(path)) diff --git a/src/crypto/TSL.h b/src/crypto/TSL.h index 629c584f8..22b030445 100644 --- a/src/crypto/TSL.h +++ b/src/crypto/TSL.h @@ -55,7 +55,7 @@ class TSL: private XMLDocument std::vector pointers() const; std::vector services() const; - static bool activate(const std::string &territory); + static bool activate(std::string territory); static std::vector parse(); private: