mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-11 23:02:12 +08:00
do not ignore FIN tcp packet
This commit is contained in:
@@ -11,6 +11,8 @@ import (
|
||||
)
|
||||
|
||||
func Server() {
|
||||
initConfig()
|
||||
|
||||
server := &http.Server{
|
||||
Addr: "0.0.0.0:" + strconv.Itoa(communicatePort),
|
||||
IdleTimeout: time.Second * 5,
|
||||
@@ -22,6 +24,10 @@ func Server() {
|
||||
}
|
||||
}
|
||||
|
||||
func initConfig() {
|
||||
_ = catpurePacketRate.setVal(catpurePacketRateVal)
|
||||
}
|
||||
|
||||
func outletCheckAlive(resp http.ResponseWriter, req *http.Request) {
|
||||
mp := hu.NewMouthpiece(resp)
|
||||
defer func() {
|
||||
|
Reference in New Issue
Block a user