diff --git a/server.go b/server.go index 18d792398..2652dc83f 100644 --- a/server.go +++ b/server.go @@ -79,6 +79,7 @@ func (s *Server) ListenAndServe() error { return s.Serve(conn) } +// Serve on an existing UDP connection. func (s *Server) Serve(conn *net.UDPConn) error { s.connMutex.Lock() s.conn = conn