fixed probe create

This commit is contained in:
snoop 2017-09-13 19:43:29 +09:00
parent 7b7bd1a540
commit 19356b74cf
2 changed files with 17 additions and 0 deletions

View File

@ -84,6 +84,14 @@ public class NoAuthProbeService {
dispName += " probe";
probe.setDisplayName(dispName);
String addrStr = netMap.get("address");
String[] addrArr = addrStr.split("\\|");
System.out.println(addrArr);
probe.setCidr(addrArr[0]);
probes.add(probe);
noAuth.setStatus(new MetaNoAuthProbeStatus((short) 1));
}

View File

@ -124,4 +124,13 @@ public class NoAuthProbeServiceTest {
}
@Test
public void ssss() {
String ss = "192.168.1.106/24|fe80::36c0:6c3e:6006:dd23/64";
String[] sss = ss.split("\\|");
System.out.println(sss[0]);
}
}