close the connection if the connection has not passed in the plugin pipeline

This commit is contained in:
smallnest
2019-07-08 16:07:01 +08:00
parent 28d08d1661
commit fe7ecbb1c8

View File

@@ -263,6 +263,7 @@ func (s *Server) serveListener(ln net.Listener) error {
conn, ok := s.Plugins.DoPostConnAccept(conn)
if !ok {
closeChannel(s, conn)
continue
}