diff --git a/src/ws/reqrep.go b/src/ws/reqrep.go index 240d6f7..309722d 100644 --- a/src/ws/reqrep.go +++ b/src/ws/reqrep.go @@ -45,7 +45,7 @@ func HandleWSRR(c echo.Context, cfg *config.Config) error { log.Println(err) } - if apievent.IPData.IP != "" && apievent.IPData.IP == lastip { + if lastip != "" && apievent.IPData.IP == lastip { continue }