From e5d44569fb15a0a0b66437104615ccc97bdde076 Mon Sep 17 00:00:00 2001 From: Mr C0B Date: Sun, 4 Oct 2015 01:10:25 -0700 Subject: [PATCH] fix the regexp for matching an ip address --- libnetwork/resolvconf/dns/resolvconf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetwork/resolvconf/dns/resolvconf.go b/libnetwork/resolvconf/dns/resolvconf.go index d581a1913d..f981b1fc85 100644 --- a/libnetwork/resolvconf/dns/resolvconf.go +++ b/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)