network

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSafeClient

func NewSafeClient(allowPrivate bool) *http.Client

NewSafeClient returns an *http.Client with a 30-second timeout. When allowPrivate is false, connections to private/internal IP addresses are blocked to prevent SSRF attacks. DNS resolution results are used directly for dialing to prevent DNS rebinding.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL