fix the regexp for matching an ip address
This commit is contained in:
parent
62d05e6fa9
commit
e5d44569fb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue