Local API access debug message set to MEDIUM level

This commit is contained in:
Thulinma 2017-11-27 11:14:51 +01:00
parent 1767f000cd
commit c1400fec42

View file

@ -125,7 +125,7 @@ int Controller::handleAPIConnection(Socket::Connection & conn){
tthread::lock_guard<tthread::mutex> guard(configMutex); tthread::lock_guard<tthread::mutex> guard(configMutex);
//Are we local and not forwarded? Instant-authorized. //Are we local and not forwarded? Instant-authorized.
if (!authorized && !H.hasHeader("X-Real-IP") && conn.isLocal()){ if (!authorized && !H.hasHeader("X-Real-IP") && conn.isLocal()){
INFO_MSG("Local API access automatically authorized"); MEDIUM_MSG("Local API access automatically authorized");
authorized = true; authorized = true;
} }
//if already authorized, do not re-check for authorization //if already authorized, do not re-check for authorization