util

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostPublicIP

func GetHostPublicIP() string

GetHostPublicIP to get the public ip address. Only work if not behind NAT

func GetRemoteAddress

func GetRemoteAddress(conn *websocket.Conn) string

GetRemoteAddress returns public address of websocket connection

func IsPublicIP

func IsPublicIP(address string) bool

IsPublicIP checks if address is public address

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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