fix typo and wrong client host

This commit is contained in:
einhornimmond 2021-02-22 13:13:22 +01:00 committed by Ulf Gebhardt
parent 3304c417a4
commit 06374023b5
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ Poco::Net::HTTPRequestHandler* JsonRequestHandlerFactory::createRequestHandler(c
return new JsonUpdateUserInfos;
}
else if (url_first_part == "/unsecureLogin" && (ServerConfig::g_AllowUnsecureFlags & ServerConfig::UNSECURE_PASSWORD_REQUESTS)) {
return new JsonUnsecureLogin(request.clientAddress().host());
return new JsonUnsecureLogin(client_host);
}
else if (url_first_part == "/logout") {
return new JsonLogout(client_host);

View File

@ -243,7 +243,7 @@ namespace ServerConfig {
if (cfg.getInt("unsecure.allow_auto_sign_transactions", 0) == 1) {
g_AllowUnsecureFlags = (AllowUnsecure)(g_AllowUnsecureFlags | UNSECURE_AUTO_SIGN_TRANSACTIONS);
}
if (cfg.getInt("unsercure.allow_cors_all", 0) == 1) {
if (cfg.getInt("unsecure.allow_cors_all", 0) == 1) {
g_AllowUnsecureFlags = (AllowUnsecure)(g_AllowUnsecureFlags | UNSECURE_CORS_ALL);
}