diff --git a/src/mod/netutils/ipmatch.go b/src/mod/netutils/ipmatch.go index b5f6ff4..942bf56 100644 --- a/src/mod/netutils/ipmatch.go +++ b/src/mod/netutils/ipmatch.go @@ -57,7 +57,7 @@ func GetRequesterIP(r *http.Request) string { //e.g. [15c4:cbb4:cc98:4291:ffc1:3a46:06a1:51a7] requesterRawIp = requesterRawIp[1 : len(requesterRawIp)-1] } - + return requesterRawIp } @@ -91,7 +91,7 @@ func MatchIpCIDR(ip string, cidr string) bool { if i := strings.Index(ip, "%"); i != -1 { ip = ip[:i] } - + // parse the CIDR string _, cidrnet, err := net.ParseCIDR(cidr) if err != nil { diff --git a/src/web/components/httprp.html b/src/web/components/httprp.html index 272a420..1a9d653 100644 --- a/src/web/components/httprp.html +++ b/src/web/components/httprp.html @@ -47,10 +47,10 @@ -