提交 3e4d0358 编写于 作者: P ptisnovs

6884837: JTReg test SetOutgoingIf is not correct

Summary: Added check of network interfaces status
Reviewed-by: alanb, chegar
上级 c8a00a81
......@@ -70,7 +70,8 @@ public class SetOutgoingIf {
//
List<NetworkInterface> nics = new ArrayList<NetworkInterface>();
for (NetworkInterface nic : Collections.list(NetworkInterface.getNetworkInterfaces())) {
if (!nic.isLoopback())
// we should use only network interfaces with multicast support which are in "up" state
if (!nic.isLoopback() && nic.supportsMulticast() && nic.isUp())
nics.add(nic);
}
if (nics.size() <= 1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册