feat: pcap session stream_url 添加 navi 前缀
This commit is contained in:
@@ -109,12 +109,12 @@ public class PcapParserThread implements Runnable {
|
|||||||
if (T.StrUtil.equalsIgnoreCase("tcp", proto)) {
|
if (T.StrUtil.equalsIgnoreCase("tcp", proto)) {
|
||||||
Long streamId = tcpStream++;
|
Long streamId = tcpStream++;
|
||||||
pojo.put("pcap.tcp_stream", streamId);
|
pojo.put("pcap.tcp_stream", streamId);
|
||||||
pojo.put("pcap.stream_url", String.format("http://%s/pcap/%s/tcp/%s", sharkdApiHostAddr, pcapId, streamId));
|
pojo.put("pcap.stream_url", String.format("http://%s/navi/pcap/%s/tcp/%s", sharkdApiHostAddr, pcapId, streamId));
|
||||||
}
|
}
|
||||||
if (T.StrUtil.equalsIgnoreCase("udp", proto)) {
|
if (T.StrUtil.equalsIgnoreCase("udp", proto)) {
|
||||||
Long streamId = udpStream++;
|
Long streamId = udpStream++;
|
||||||
pojo.put("pcap.udp_stream", streamId);
|
pojo.put("pcap.udp_stream", streamId);
|
||||||
pojo.put("pcap.stream_url", String.format("http://%s/pcap/%s/udp/%s", sharkdApiHostAddr, pcapId, streamId));
|
pojo.put("pcap.stream_url", String.format("http://%s/navi/pcap/%s/udp/%s", sharkdApiHostAddr, pcapId, streamId));
|
||||||
}
|
}
|
||||||
|
|
||||||
String resp = T.MapUtil.getStr(pojo, "id.resp_h", "");
|
String resp = T.MapUtil.getStr(pojo, "id.resp_h", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user