]> Cypherpunks repositories - gostls13.git/commit
net: return correct point-to-point interface address on linux
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 19 Feb 2013 22:31:44 +0000 (07:31 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Tue, 19 Feb 2013 22:31:44 +0000 (07:31 +0900)
commite4890e57e1bf24bd6e2671cfb133bdc49ce0da71
treeb61a8e44b22ac28a87fb7beb47c61860f6e8e34c
parenta17c46169f59579788d0ffb82eab875e4f15fc00
net: return correct point-to-point interface address on linux

On Linux point-to-point interface an IFA_ADDRESS attribute
represents a peer address. For a correct interface address
we should take an IFA_LOCAL attribute instead.

Fixes #4839.

R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/7352045
src/pkg/net/interface_linux.go