mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-29 13:21:55 +02:00
fixed middleware implementation, added middleware tracing for easier debug
This commit is contained in:
@@ -32,3 +32,7 @@ func (cidr *CIDR) Contains(ip net.IP) bool {
|
||||
func (cidr *CIDR) String() string {
|
||||
return (*net.IPNet)(cidr).String()
|
||||
}
|
||||
|
||||
func (cidr *CIDR) Equals(other *CIDR) bool {
|
||||
return (*net.IPNet)(cidr).IP.Equal(other.IP) && cidr.Mask.String() == other.Mask.String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user