diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-16 17:34:27 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-16 17:34:27 +0000 |
commit | 8663fa59e76a84e284b4e726a487f4920c5b4a76 (patch) | |
tree | aca473b6adf0d1d3bb8f328a00437e453cd21254 /pkg/tcpip/stack/stack.go | |
parent | 34cc37e563c44dc9c16322a8640f944597648a84 (diff) | |
parent | ebd7c1b889e5d212f4a694d3addbada241936e8e (diff) |
Merge release-20210309.0-31-gebd7c1b88 (automated)
Diffstat (limited to 'pkg/tcpip/stack/stack.go')
-rw-r--r-- | pkg/tcpip/stack/stack.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go index 53370c354..1fffe9274 100644 --- a/pkg/tcpip/stack/stack.go +++ b/pkg/tcpip/stack/stack.go @@ -1224,7 +1224,8 @@ func (s *Stack) GetMainNICAddress(id tcpip.NICID, protocol tcpip.NetworkProtocol return tcpip.AddressWithPrefix{}, false } - return nic.primaryAddress(protocol), true + addr, err := nic.PrimaryAddress(protocol) + return addr, err == nil } func (s *Stack) getAddressEP(nic *nic, localAddr, remoteAddr tcpip.Address, netProto tcpip.NetworkProtocolNumber) AssignableAddressEndpoint { |