aboutsummaryrefslogtreecommitdiff
path: root/http_log.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-04-01 12:46:07 +0700
committerShulhan <ms@kilabit.info>2024-04-01 12:46:07 +0700
commitc48d8614027569d0f68203d83e7b4abb17bd6b7c (patch)
treec255dfbe83527ffdb14b73d759ca000af0f20619 /http_log.go
parent57c0833153f9cc87ae72954f8876ea438d2552ae (diff)
downloadhaminer-c48d8614027569d0f68203d83e7b4abb17bd6b7c.tar.xz
all: do not log ServerName with invalid connection '<NOSRV>'
Diffstat (limited to 'http_log.go')
-rw-r--r--http_log.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/http_log.go b/http_log.go
index 8aed58b..12a9f0e 100644
--- a/http_log.go
+++ b/http_log.go
@@ -207,6 +207,10 @@ func Parse(in []byte, reqHeaders []string) (httpLog *HTTPLog) {
return nil
}
+ if httpLog.ServerName == `<NOSRV>` {
+ return nil
+ }
+
ok = httpLog.parseConnectionTimes(in)
if !ok {
return nil