mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-08 06:08:30 +02:00
Added http proxy list link port
- Added port number and http proto to http proxy list link #635
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user