return c.conn.WriteToUDP(data, c.addr)
}
-// TODO move to udpSender (?)
-// buffers for UDP parallel processing
-var udpBufs = make(chan []byte, 1<<8)
-
func (s *Server) startUDP() {
bind, err := net.ResolveUDPAddr("udp", s.configuration.BindAddress)
if err != nil {
).WithFields(
s.configuration.LogFields(),
).Info("Listen")
+
+ udpBufs := make(chan []byte, 1<<8)
udpBufs <- make([]byte, govpn.MTUMax)
go func() {
var buf []byte