Browse Source

Merge pull request #845 from achanda/regex

Fix regex for IPv6
Madhu Venugopal 9 years ago
parent
commit
e1bfa95f41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/resolvconf/dns/resolvconf.go

+ 1 - 1
libnetwork/resolvconf/dns/resolvconf.go

@@ -5,7 +5,7 @@ import (
 )
 
 // IPLocalhost is a regex patter for localhost IP address range.
-const IPLocalhost = `((127\.([0-9]{1,3}\.){2}[0-9]{1,3})|(::1))`
+const IPLocalhost = `((127\.([0-9]{1,3}\.){2}[0-9]{1,3})|(::1)$)`
 
 var localhostIPRegexp = regexp.MustCompile(IPLocalhost)