summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-11-09 22:01:25 +0000
committergVisor bot <gvisor-bot@google.com>2020-11-09 22:01:25 +0000
commit66c2a243033c578132664878a4a0b80d64bca660 (patch)
tree02d17c99ef9e7c94171319f63fb4fd25fb99091b
parent7c400d94f4f956a196c483c6207c081ffd2d096a (diff)
parent2fcca60a7bf084a28e878941d9dcb47e11268cbd (diff)
Merge release-20201030.0-59-g2fcca60a7 (automated)
-rw-r--r--pkg/tcpip/stack/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go
index a23fb97ff..0fe157128 100644
--- a/pkg/tcpip/stack/stack.go
+++ b/pkg/tcpip/stack/stack.go
@@ -1418,7 +1418,7 @@ func (s *Stack) FindRoute(id tcpip.NICID, localAddr, remoteAddr tcpip.Address, n
if needRoute {
return Route{}, tcpip.ErrNoRoute
}
- if isLoopback {
+ if header.IsV6LoopbackAddress(remoteAddr) {
return Route{}, tcpip.ErrBadLocalAddress
}
return Route{}, tcpip.ErrNetworkUnreachable