mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Use initial_address for quota calculation when the interserver-secret mode enabled.
This commit is contained in:
parent
dbc837c148
commit
02acedd6a3
@ -965,7 +965,7 @@ void TCPHandler::receiveQuery()
|
||||
/// i.e. when the INSERT is done with the global context (w/o user).
|
||||
if (!client_info.initial_user.empty())
|
||||
{
|
||||
query_context->setUserWithoutCheckingPassword(client_info.initial_user, socket().peerAddress());
|
||||
query_context->setUserWithoutCheckingPassword(client_info.initial_user, client_info.initial_address);
|
||||
LOG_DEBUG(log, "User (initial): {}", query_context->getUserName());
|
||||
}
|
||||
/// No need to update connection_context, since it does not requires user (it will not be used for query execution)
|
||||
|
Loading…
Reference in New Issue
Block a user