Documentation
¶
Index ¶
- Variables
- func CheckRedirect(req *http.Request, via []*http.Request) error
- func CheckURL(rawURL string) error
- func IsPrivateIP(ip net.IP) bool
- func NewSSRFSafeClient(timeout time.Duration) *http.Client
- func SetLookupIPForTest(fn func(string) ([]net.IP, error)) func()
- func WrapTransportWithSSRFCheck(transport *http.Transport) *http.Transport
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSSRFBlocked = fmt.Errorf("SSRF blocked: URL resolves to private/internal IP")
Functions ¶
func IsPrivateIP ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.