mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-33506 Show original IP in the "aborted" message.
Add "real ip:<ip_or_localhost>" part to the aborted message Only for proxy-protocoled connection, so it does not not to cause confusion to normal users.
This commit is contained in:
@ -57,3 +57,9 @@ SET @@global.character_set_server= @save_character_set_server;
|
||||
SET @@global.collation_server= @save_collation_server;
|
||||
SET @@global.character_set_client= @save_character_set_client;
|
||||
SET @@global.collation_connection= @save_collation_connection;
|
||||
|
||||
# Search for "real ip" in Aborted message
|
||||
# This is indicator for abort of the proxied connections.
|
||||
let SEARCH_FILE=$MYSQLTEST_VARDIR/log/mysqld.1.err;
|
||||
let SEARCH_PATTERN= Aborted connection.*'u' host: '192.0.2.1' real ip: '(localhost|::1)';
|
||||
source include/search_pattern_in_file.inc;
|
||||
|
Reference in New Issue
Block a user