Skip to content

Commit ceb4415

Browse files
committed
skip specific noisy MASQUE connection logs in handleScanner
1 parent c2e3b7b commit ceb4415

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

main.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,28 @@ func handleScanner(scan *bufio.Scanner, bind string, st *procState, cmd *exec.Cm
694694
if tunnelFailLimit <= 0 {
695695
tunnelFailLimit = 1
696696
}
697+
698+
skipKeywords := []string{
699+
"server: writeto tcp",
700+
"wsarecv: an established connection was",
701+
"datagram frame too large",
702+
}
703+
697704
for scan.Scan() {
698705
line := scan.Text()
699706
lower := strings.ToLower(line)
700707

708+
skip := false
709+
for _, kw := range skipKeywords {
710+
if strings.Contains(lower, kw) {
711+
skip = true
712+
break
713+
}
714+
}
715+
if skip {
716+
continue
717+
}
718+
701719
if logChild {
702720
logInfo(line, nil)
703721
}

0 commit comments

Comments
 (0)