Documentation
¶
Index ¶
- Variables
- func ElementumURL(xbmcHost *xbmc.XBMCHost) string
- func GetContextHTTPHost(ctx *gin.Context) string
- func GetHTTPHost(xbmcHost *xbmc.XBMCHost) string
- func GetInterfaceAddrs(input string) (v4 net.IP, v6 net.IP, err error)
- func GetLocalHTTPHost() string
- func GetLocalHost() string
- func GetPossibleGateways(addr net.IP) (ret []net.IP)
- func InternalProxyURL(xbmcHost *xbmc.XBMCHost) string
- func IsAddrLocal(ip net.IP) bool
- func IsAddrVPN(ip net.IP) bool
- func LocalIP(xbmcHost *xbmc.XBMCHost) (net.IP, error)
- func LocalIPs() ([]net.IP, error)
- func ParseListenPort(message string) (int, error)
- func RequestUserIP(r *http.Request) string
- func TestRepositoryURL() error
- func VPNIPs() ([]net.IP, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var VPNFilteredNetworks = []net.IPNet{ filtertransport.MustParseCIDR("10.0.0.0/8"), filtertransport.MustParseCIDR("172.16.0.0/12"), filtertransport.MustParseCIDR("192.168.0.0/16"), }
Functions ¶
func ElementumURL ¶
ElementumURL returns elementum url for external calls
func GetInterfaceAddrs ¶ added in v0.1.107
GetInterfaceAddrs returns IPv4 and IPv6 for an interface string.
func GetLocalHost ¶
func GetLocalHost() string
func GetPossibleGateways ¶ added in v0.1.107
GetPossibleGateways calculates possible gateways for interface IP
func InternalProxyURL ¶
InternalProxyURL returns internal proxy url
func IsAddrLocal ¶ added in v0.1.107
func ParseListenPort ¶ added in v0.1.113
func RequestUserIP ¶
func TestRepositoryURL ¶ added in v0.1.102
func TestRepositoryURL() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.