Merge pull request #587 from c0b/patch-1

fix the regexp for matching an ip address
This commit is contained in:
aboch 2015-10-06 15:12:17 -07:00
commit 617f0fa56c

View file

@ -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)