diff options
-rw-r--r-- | test/http_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index 9470f44..01da7b2 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -422,9 +422,9 @@ body_to_chunks(ChunkSize, Body, Acc) -> get_mtu() -> {ok, Interfaces} = inet:getiflist(), - [LocalInterface | _] = lists:filter(fun - ("lo" ++ _) -> true; - (_) -> false + [LocalInterface | _ ] = lists:filter(fun(Interface) -> + {ok, [{flags, Flags}]} = inet:ifget(Interface, [flags]), + lists:member(loopback, Flags) end, Interfaces), {ok, [{mtu, MTU}]} = inet:ifget(LocalInterface, [mtu]), MTU. |