summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/nic.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tcpip/stack/nic.go')
-rw-r--r--pkg/tcpip/stack/nic.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/pkg/tcpip/stack/nic.go b/pkg/tcpip/stack/nic.go
index 6f3c24122..770d288cf 100644
--- a/pkg/tcpip/stack/nic.go
+++ b/pkg/tcpip/stack/nic.go
@@ -119,16 +119,6 @@ func (n *NIC) getMainNICAddress(protocol tcpip.NetworkProtocolNumber) (tcpip.Add
}
- // If no primary endpoints then check for other endpoints.
- if r == nil {
- for _, ref := range n.endpoints {
- if ref.holdsInsertRef && ref.tryIncRef() {
- r = ref
- break
- }
- }
- }
-
if r == nil {
return "", tcpip.Subnet{}, tcpip.ErrNoLinkAddress
}