From 125320343a85eb57a75974ab6bf11b8d7734fe76 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 11 Dec 2021 14:03:48 +0100 Subject: [PATCH] update update check service location --- contrib/config/README.md | 6 +++--- contrib/config/index.php | 2 +- contrib/updatecheck/README.md | 3 ++- src/ebusd/main.cpp | 4 ++-- src/ebusd/main.h | 2 +- src/ebusd/mainloop.cpp | 4 ++-- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/contrib/config/README.md b/contrib/config/README.md index 3d6e48a7..024b9028 100644 --- a/contrib/config/README.md +++ b/contrib/config/README.md @@ -2,7 +2,7 @@ ebusd.eu config webservice ========================== -This is the code running on the ebusd.eu config webservice that allows ebusd to download the needed CSV configuration files instead of having to install the ebusd-configuration package. - -It is enabled by default in ebusd due to the default value of the `--configpath=http://ebusd.eu/config/` commandline option. +This is the code of the webservice at http://cfg.ebusd.eu/ that allows ebusd to download the needed CSV configuration +files instead of having to install the ebusd-configuration package. +It is enabled by default in ebusd due to the default value of the `--configpath=http://cfg.ebusd.eu/` commandline option. diff --git a/contrib/config/index.php b/contrib/config/index.php index b318a033..4bb82fd2 100644 --- a/contrib/config/index.php +++ b/contrib/config/index.php @@ -1,7 +1,7 @@ nextCheckRun) { HttpClient client; - if (!client.connect("ebusd.eu", 80, PACKAGE_NAME "/" PACKAGE_VERSION)) { + if (!client.connect("upd.ebusd.eu", 80, PACKAGE_NAME "/" PACKAGE_VERSION)) { logError(lf_main, "update check connect error"); } else { ostringstream ostr; @@ -357,7 +357,7 @@ void MainLoop::run() { m_busHandler->formatUpdateInfo(&ostr); ostr << "}"; string response; - if (!client.post("/updatecheck/", ostr.str(), &response)) { + if (!client.post("/", ostr.str(), &response)) { logError(lf_main, "update check error: %s", response.c_str()); } else { m_updateCheck = response.empty() ? "unknown" : response;