vendor: Update pfilter and go-stun (fixes #4561)
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4575
This commit is contained in:
2
vendor/github.com/ccding/go-stun/stun/net.go
generated
vendored
2
vendor/github.com/ccding/go-stun/stun/net.go
generated
vendored
@@ -78,7 +78,7 @@ func (c *Client) send(pkt *packet, conn net.PacketConn, addr net.Addr) (*respons
|
||||
// Read from the port.
|
||||
length, raddr, err := conn.ReadFrom(packetBytes)
|
||||
if err != nil {
|
||||
if err.(net.Error).Timeout() {
|
||||
if nerr, ok := err.(net.Error); ok && nerr.Timeout() {
|
||||
break
|
||||
}
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user