# Functions
BodyWithProgressMonitor creates a ProgressMonitor directly from an http.Response.
CheckPortAvailability - check if given port is already in use.
ExternalDomainFromRequest finds external URL based on request fields or headers.
No description provided by the author
GetAvailableHttpAltPort tries to find best available port for HTTP.
GetAvailableIPs retrieves all outbound ips of this machine by scanning the network interfaces of this (virtual) machine.
GetAvailablePort finds an available TCP port on which to listen to.
No description provided by the author
GetOutboundIP retrieves the preferred outbound ip of this machine by simply connecting to a well known ip of the internet.
No description provided by the author
HostsFileLookup loads host defined in /etc/hosts using jaytaylor/go-hostsfile library.
NewProgressMonitor initialize a ProgressMonitor with the channels.
PeerAddressesAreSameNode compares two addresses composed of multiple segments (separated by |) and check if any segments are similar.
PeerAddressIsLocal compares and address (can be an IP or Hostname) to the current server values.
ShouldWarnPublicBind browses all interfaces addresses and detect if some are considered public.
# Structs
ProgressMonitor provides a TeeReader to wrap a reader and send a progress inside a dedicated channel.