From 9d5bb176ecf88f3a08034148df12ded0d150e4ed Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Sun, 23 Oct 2011 19:31:45 +0200 Subject: [PATCH] Bug 1285 - IPv6 Localhost is marked as GLOBAL instead of HOST --- src/internet/model/ipv6-interface-address.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internet/model/ipv6-interface-address.cc b/src/internet/model/ipv6-interface-address.cc index e962ba648..862d57214 100644 --- a/src/internet/model/ipv6-interface-address.cc +++ b/src/internet/model/ipv6-interface-address.cc @@ -89,7 +89,7 @@ void Ipv6InterfaceAddress::SetAddress (Ipv6Address address) /* localhost address is always /128 prefix */ m_prefix = Ipv6Prefix (128); } - if (address.IsLinkLocal ()) + else if (address.IsLinkLocal ()) { m_scope = LINKLOCAL; /* link-local address is always /64 prefix */