Commit 4538c3ea authored by 赵啸非's avatar 赵啸非

修改pom文件

parent c920be0f
...@@ -197,7 +197,7 @@ public class CaptureThread implements Runnable { ...@@ -197,7 +197,7 @@ public class CaptureThread implements Runnable {
private boolean checkTcpPacket(Map<String, Set<String>> filterMap, TcpPacket tcp) { private boolean checkTcpPacket(Map<String, Set<String>> filterMap, TcpPacket tcp) {
String dstPort = tcp.getHeader().getDstPort().valueAsString(); String dstPort = tcp.getHeader().getDstPort().valueAsString();
// log.info("destPort before:"+dstPort); // log.info("destPort before:"+dstPort);
if (!filterMap.get("SendServerPort").contains(dstPort)) { if (!filterMap.get("SendServerPort").contains(dstPort)) {
return true; return true;
} }
...@@ -205,7 +205,7 @@ public class CaptureThread implements Runnable { ...@@ -205,7 +205,7 @@ public class CaptureThread implements Runnable {
if (tcp.getPayload() == null) { if (tcp.getPayload() == null) {
return true; return true;
} }
log.info("destPort:"+dstPort); log.info("destPort:" + dstPort);
return false; return false;
} }
...@@ -237,8 +237,13 @@ public class CaptureThread implements Runnable { ...@@ -237,8 +237,13 @@ public class CaptureThread implements Runnable {
hcpReq.setUrl(hcpUrl); hcpReq.setUrl(hcpUrl);
String body = JSON.toJSONString(hcpReq); String body = JSON.toJSONString(hcpReq);
log.info("req url:{},body:{}",url,body); log.info("req url:{},body:{}", url, body);
String response = HttpUtil.post(url, body);
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("url", hcpUrl);
paramMap.put("windowid", windowId);
String response = HttpUtil.post(url, paramMap);
log.info("response :" + response); log.info("response :" + response);
Rest<Void> rest = JSON.parseObject(response, new TypeReference<Rest<Void>>() { Rest<Void> rest = JSON.parseObject(response, new TypeReference<Rest<Void>>() {
......
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