@@ -165,20 +165,20 @@ start_tls_listener(TLSConf0, CowboyOpts0, Routes) ->
165165
166166listener_started (Protocol , Listener ) ->
167167 Port = rabbit_misc :pget (port , Listener ),
168- case rabbit_misc :pget (ip , Listener ) of
169- undefined ->
170- [rabbit_networking :tcp_listener_started (Protocol , Listener ,
171- IPAddress , Port )
172- || {IPAddress , _Port , _Family }
173- <- rabbit_networking :tcp_listener_addresses (Port )];
174- IP when is_tuple (IP ) ->
175- rabbit_networking :tcp_listener_started (Protocol , Listener ,
176- IP , Port );
177- IP when is_list (IP ) ->
178- {ok , ParsedIP } = inet_parse :address (IP ),
179- rabbit_networking :tcp_listener_started (Protocol , Listener ,
180- ParsedIP , Port )
181- end ,
168+ _ = case rabbit_misc :pget (ip , Listener ) of
169+ undefined ->
170+ [rabbit_networking :tcp_listener_started (Protocol , Listener ,
171+ IPAddress , Port )
172+ || {IPAddress , _Port , _Family }
173+ <- rabbit_networking :tcp_listener_addresses (Port )];
174+ IP when is_tuple (IP ) ->
175+ rabbit_networking :tcp_listener_started (Protocol , Listener ,
176+ IP , Port );
177+ IP when is_list (IP ) ->
178+ {ok , ParsedIP } = inet_parse :address (IP ),
179+ rabbit_networking :tcp_listener_started (Protocol , Listener ,
180+ ParsedIP , Port )
181+ end ,
182182 ok .
183183
184184get_env (Key , Default ) ->
0 commit comments