| commit | c88a6719255f5dc8c85b367eaf9569f171e73b56 | [log] [tgz] |
|---|---|---|
| author | Mikio Hara <mikioh.mikioh@gmail.com> | Tue Jan 28 03:18:27 2014 -0800 |
| committer | Mikio Hara <mikioh.mikioh@gmail.com> | Tue Jan 28 03:18:27 2014 -0800 |
| tree | 61e12ae397251270d72f6811153052809b7e9cc3 | |
| parent | 5be96aad0094b51757a40414fb7a5f3418de8067 [diff] [blame] |
net: make it possible to use FilePacketConn with IPConn Fixes #6803. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/57560043
diff --git a/src/pkg/net/file_unix.go b/src/pkg/net/file_unix.go index 8fe1b0e..38ae47f 100644 --- a/src/pkg/net/file_unix.go +++ b/src/pkg/net/file_unix.go
@@ -129,6 +129,8 @@ switch fd.laddr.(type) { case *UDPAddr: return newUDPConn(fd), nil + case *IPAddr: + return newIPConn(fd), nil case *UnixAddr: return newUnixConn(fd), nil }