We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31f917c + 429245c commit e75d991Copy full SHA for e75d991
server.go
@@ -323,7 +323,11 @@ func (s *Server) goReceiveDatagrams(connection net.Conn) {
323
for ; (n > 0) && (buf[n-1] < 32); n-- {
324
}
325
if n > 0 {
326
- s.datagramChannel <- DatagramMessage{buf[:n], addr.String()}
+ var address string
327
+ if addr != nil {
328
+ address = addr.String()
329
+ }
330
+ s.datagramChannel <- DatagramMessage{buf[:n], address}
331
332
} else {
333
// there has been an error. Either the server has been killed
0 commit comments