TrustPrivateNet configures if you trust private network address (default: true).
(v bool)
| 159 | |
| 160 | // TrustPrivateNet configures if you trust private network address (default: true). |
| 161 | func TrustPrivateNet(v bool) TrustOption { |
| 162 | return func(c *ipChecker) { |
| 163 | c.trustPrivateNet = v |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | // TrustIPRange add trustable IP ranges using CIDR notation. |
| 168 | func TrustIPRange(ipRange *net.IPNet) TrustOption { |
no outgoing calls
searching dependent graphs…