Documentation ¶
Index ¶
- func SafeHTTPClient(client *http.Client, log logrus.FieldLogger, allowedBlocks ...*net.IPNet) *http.Client
- func SafeRoundtripper(trans http.RoundTripper, log logrus.FieldLogger, allowedBlocks ...*net.IPNet) http.RoundTripper
- func SafeTransport(allowedBlocks ...*net.IPNet) *http.Transport
- type DialFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeHTTPClient ¶
func SafeHTTPClient(client *http.Client, log logrus.FieldLogger, allowedBlocks ...*net.IPNet) *http.Client
SafeHTTPClient blocks requests to private ip ranges Deprecated: use SafeTransport instead
func SafeRoundtripper ¶
func SafeRoundtripper(trans http.RoundTripper, log logrus.FieldLogger, allowedBlocks ...*net.IPNet) http.RoundTripper
SafeRoundtripper blocks requests to private ip ranges Deprecated: use SafeTransport instead
Types ¶
Click to show internal directories.
Click to hide internal directories.