Commit f05e0669 authored by Richer Maximilien's avatar Richer Maximilien

[net] golint fix : isAnIpV4 should be isAnIPV4

parent 1ccce65f
Pipeline #1766 passed with stage
......@@ -263,9 +263,9 @@ func TestExternalInterfaces(t *testing.T) {
panic("Cannot read interfaces config")
}
isAnIpV4 := regexp.MustCompile("^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$")
isAnIPV4 := regexp.MustCompile("^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$")
for _, ip := range ips {
if !isAnIpV4.MatchString(ip) {
if !isAnIPV4.MatchString(ip) {
panic(ip + " is not a valid IPv4!")
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment