Skip to content

Commit 330b820

Browse files
committed
Update proxy protocol test cases
1 parent aac9970 commit 330b820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/test/proxy_protocol_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ proxy_protocol(Config) ->
6464
{ok, _Packet} = gen_tcp:recv(Socket, 0, ?TIMEOUT),
6565
ConnectionName = rabbit_ct_broker_helpers:rpc(Config, 0,
6666
?MODULE, connection_name, []),
67-
match = re:run(ConnectionName, <<"^192.168.1.1:80 ">>, [{capture, none}]),
67+
match = re:run(ConnectionName, <<"^192.168.1.1:80 -> 192.168.1.2:81$">>, [{capture, none}]),
6868
gen_tcp:close(Socket),
6969
ok.
7070

@@ -79,7 +79,7 @@ proxy_protocol_tls(Config) ->
7979
{ok, _Packet} = ssl:recv(SslSocket, 0, ?TIMEOUT),
8080
ConnectionName = rabbit_ct_broker_helpers:rpc(Config, 0,
8181
?MODULE, connection_name, []),
82-
match = re:run(ConnectionName, <<"^192.168.1.1:80 ">>, [{capture, none}]),
82+
match = re:run(ConnectionName, <<"^192.168.1.1:80 -> 192.168.1.2:81$">>, [{capture, none}]),
8383
gen_tcp:close(Socket),
8484
ok.
8585

0 commit comments

Comments
 (0)