netutils

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixLocalhost added in v1.50.0

func FixLocalhost(hostports []string) []string

FixLocalhost adds explicit localhost to endpoints binding to all interfaces because :port is not recognized by NO_PROXY e.g. :8080 becomes localhost:8080

func GetPort

func GetPort(addr net.Addr) (int, error)

GetPort returns the port of an endpoint address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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