diff options
| author | Shulhan <ms@kilabit.info> | 2024-04-01 12:46:07 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-04-01 12:46:07 +0700 |
| commit | c48d8614027569d0f68203d83e7b4abb17bd6b7c (patch) | |
| tree | c255dfbe83527ffdb14b73d759ca000af0f20619 /http_log.go | |
| parent | 57c0833153f9cc87ae72954f8876ea438d2552ae (diff) | |
| download | haminer-c48d8614027569d0f68203d83e7b4abb17bd6b7c.tar.xz | |
all: do not log ServerName with invalid connection '<NOSRV>'
Diffstat (limited to 'http_log.go')
| -rw-r--r-- | http_log.go | 4 |
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 |
