add recorder

This commit is contained in:
ginuerzh
2022-04-11 22:53:02 +08:00
parent a117222cde
commit 03988fee0b
3 changed files with 58 additions and 8 deletions

View File

@ -98,6 +98,7 @@ func (s *service) Serve() error {
if s.options.admission != nil &&
!s.options.admission.Admit(conn.RemoteAddr().String()) {
conn.Close()
s.options.logger.Debugf("admission: %s is denied", conn.RemoteAddr())
continue
}