network

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCloudflareProxy

func CheckCloudflareProxy(domain string, logFn func(string)) bool

CheckCloudflareProxy detects Cloudflare proxying

func RunNetworkCommand

func RunNetworkCommand(command string, args ...string) (string, error)

RunNetworkCommand runs a command and gets output

func ValidateDNS

func ValidateDNS(domain string, expectedIP string, logFn func(string)) bool

ValidateDNS verifies DNS record points to expected IP

func ValidateIP

func ValidateIP(ip string) bool

ValidateIP - simple IP format check

Types

type IPInfo

type IPInfo struct {
	InternalIP string
	ExternalIP string
	CIDR       string
}

IPInfo stores network addressing details

func DetectIPs

func DetectIPs(logFn func(string)) (*IPInfo, error)

DetectIPs finds network addressing info

Jump to

Keyboard shortcuts

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