iputil

package
v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package iputil implements IP address related utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIPPrivate

func IsIPPrivate(ip net.IP) bool

IsIPPrivate retrurns true if the given IP address is part of a private network

func IsPrivate

func IsPrivate(host string) (bool, error)

IsPrivate returns true if the given host revolve to a private IP address (or if a private address is passed)

Types

This section is empty.

Jump to

Keyboard shortcuts

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