summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-09-15 22:04:40 +0000
committergVisor bot <gvisor-bot@google.com>2021-09-15 22:04:40 +0000
commit25072e398de26cc14921a91524bbc586b2dbbda9 (patch)
tree1a93518cb336ae04aa483bc414d92d3b81572eba /pkg/sentry/socket
parentbd452e421512f97ee1ada4f25755a90265d693f6 (diff)
parent8b56b6b83b86009191587c86e134d6c924834831 (diff)
Merge release-20210906.0-26-g8b56b6b83 (automated)
Diffstat (limited to 'pkg/sentry/socket')
-rw-r--r--pkg/sentry/socket/netstack/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/socket/netstack/stack.go b/pkg/sentry/socket/netstack/stack.go
index 208ab9909..ea199f223 100644
--- a/pkg/sentry/socket/netstack/stack.go
+++ b/pkg/sentry/socket/netstack/stack.go
@@ -155,7 +155,7 @@ func (s *Stack) AddInterfaceAddr(idx int32, addr inet.InterfaceAddr) error {
// Attach address to interface.
nicID := tcpip.NICID(idx)
- if err := s.Stack.AddProtocolAddressWithOptions(nicID, protocolAddress, stack.CanBePrimaryEndpoint); err != nil {
+ if err := s.Stack.AddProtocolAddress(nicID, protocolAddress, stack.AddressProperties{}); err != nil {
return syserr.TranslateNetstackError(err).ToError()
}