1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

In test_proxy_header(), use IP address 192.0.2.1 .

This address is from reserved range (rfc5737), and this ensures that DNS
won't resolve it into a name
This commit is contained in:
Vladislav Vaintroub
2017-08-26 22:01:03 +00:00
parent f93d5d927e
commit 316cb33795

View File

@@ -19805,9 +19805,9 @@ static void test_proxy_header_ignore()
static void test_proxy_header()
{
test_proxy_header_tcp("127.0.0.2",3333);
test_proxy_header_tcp("192.0.2.1",3333);
test_proxy_header_tcp("2001:db8:85a3::8a2e:370:7334",2222);
test_proxy_header_tcp("::ffff:127.0.0.2",2222);
test_proxy_header_tcp("::ffff:192.0.2.1",2222);
test_proxy_header_localhost();
test_proxy_header_ignore();
}