diff --git a/server.go b/server.go index 88240370..d4364d6e 100644 --- a/server.go +++ b/server.go @@ -301,7 +301,7 @@ func (srv *Server) init() { srv.UDPSize = MinMsgSize } if srv.MsgAcceptFunc == nil { - srv.MsgAcceptFunc = defaultMsgAcceptFunc + srv.MsgAcceptFunc = DefaultMsgAcceptFunc } srv.udpPool.New = makeUDPBuffer(srv.UDPSize)