diff options
Diffstat (limited to 'libgo/go/net/file_unix.go')
-rw-r--r-- | libgo/go/net/file_unix.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/go/net/file_unix.go b/libgo/go/net/file_unix.go index 8fe1b0eb035f..38ae47f7847d 100644 --- a/libgo/go/net/file_unix.go +++ b/libgo/go/net/file_unix.go @@ -129,6 +129,8 @@ func FilePacketConn(f *os.File) (c PacketConn, err error) { switch fd.laddr.(type) { case *UDPAddr: return newUDPConn(fd), nil + case *IPAddr: + return newIPConn(fd), nil case *UnixAddr: return newUnixConn(fd), nil } |