vendor: Update pfilter and go-stun (fixes #4561)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4575
This commit is contained in:
Audrius Butkevicius
2017-12-06 21:28:36 +00:00
parent 3153e36a3d
commit b9ed6c4c2c
5 changed files with 71 additions and 12 deletions

View File

@@ -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