Commit 37d8be12 authored by 赵啸非's avatar 赵啸非

修改pom文件

parent c7bffb9b
......@@ -41,8 +41,8 @@ public class CaptureStartedService implements IApplicationStartedService {
List<PcapNetworkInterface> allDevs = null;
try {
allDevs = Pcaps.findAllDevs();
String localHost = "127.0.0.1";
for (final PcapNetworkInterface device : allDevs) {
String localHost = "127.0.0.1";
List<PcapAddress> addresses = device.getAddresses();
Boolean bool = false;
String ip = "";
......@@ -55,13 +55,9 @@ public class CaptureStartedService implements IApplicationStartedService {
ipv4 = Validator.isIpv4(ip);
log.info("ip:{}, is ipv4:{}", ip, ipv4);
if (ip != null && ip.contains(localHost)) {
bool = false;
break;
// 返回指定的设备对象
//return networkInterface;
continue;
}
if (!ipv4) {
if (ipv4) {
bool = true;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment