|
@@ -231,9 +231,17 @@ func processPacket(packet gopacket.Packet) {
|
|
|
|
|
|
switch config.Protocol {
|
|
switch config.Protocol {
|
|
case "http":
|
|
case "http":
|
|
- processHTTP(&request, applicationLayer.Payload())
|
|
|
|
|
|
+ err := processHTTP(&request, applicationLayer.Payload())
|
|
|
|
+ if err != nil {
|
|
|
|
+ log.Println(err)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
case "ajp13":
|
|
case "ajp13":
|
|
- processAJP13(&request, applicationLayer.Payload())
|
|
|
|
|
|
+ err := processAJP13(&request, applicationLayer.Payload())
|
|
|
|
+ if err != nil {
|
|
|
|
+ log.Println(err)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if config.UseXForwardedAsSource && request.XForwardedFor != "" {
|
|
if config.UseXForwardedAsSource && request.XForwardedFor != "" {
|