From 90924f38eeabe81a21452b4c85f40e0d92cc82d7 Mon Sep 17 00:00:00 2001 From: juhlig Date: Thu, 8 Aug 2019 14:44:54 +0200 Subject: Update examples to use new transport options format --- examples/tcp_reverse/src/tcp_reverse_app.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/tcp_reverse') diff --git a/examples/tcp_reverse/src/tcp_reverse_app.erl b/examples/tcp_reverse/src/tcp_reverse_app.erl index 1138d4a..c97f6ee 100644 --- a/examples/tcp_reverse/src/tcp_reverse_app.erl +++ b/examples/tcp_reverse/src/tcp_reverse_app.erl @@ -12,7 +12,8 @@ start(_Type, _Args) -> {ok, _} = ranch:start_listener(tcp_reverse, - ranch_tcp, [{port, 5555}], reverse_protocol, []), + ranch_tcp, #{socket_opts => [{port, 5555}]}, + reverse_protocol, []), tcp_reverse_sup:start_link(). stop(_State) -> -- cgit v1.2.3