ip

package
v0.1.110 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementumURL

func ElementumURL(xbmcHost *xbmc.XBMCHost) string

ElementumURL returns elementum url for external calls

func GetContextHTTPHost

func GetContextHTTPHost(ctx *gin.Context) string

GetContextHTTPHost ...

func GetHTTPHost

func GetHTTPHost(xbmcHost *xbmc.XBMCHost) string

GetHTTPHost ...

func GetInterfaceAddrs added in v0.1.107

func GetInterfaceAddrs(input string) (v4 net.IP, v6 net.IP, err error)

GetInterfaceAddrs returns IPv4 and IPv6 for an interface string.

func GetListenAddr

func GetListenAddr(confAutoIP bool, confAutoPort bool, confInterfaces string, confPortMin int, confPortMax int) (listenIP, listenIPv6 string, listenPort int, disableIPv6 bool, err error)

GetListenAddr parsing configuration setted for interfaces and port range and returning IP, IPv6, and port

func GetLocalHTTPHost

func GetLocalHTTPHost() string

GetLocalHTTPHost ...

func GetLocalHost

func GetLocalHost() string

func GetPossibleGateways added in v0.1.107

func GetPossibleGateways(addr net.IP) (ret []net.IP)

GetPossibleGateways calculates possible gateways for interface IP

func InternalProxyURL

func InternalProxyURL(xbmcHost *xbmc.XBMCHost) string

InternalProxyURL returns internal proxy url

func IsAddrLocal added in v0.1.107

func IsAddrLocal(ip net.IP) bool

func LocalIP

func LocalIP(xbmcHost *xbmc.XBMCHost) (net.IP, error)

func RequestUserIP

func RequestUserIP(r *http.Request) string

func TestRepositoryURL added in v0.1.102

func TestRepositoryURL() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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