var httpPort …
var udpPort …
var sctpPort …
var shellPath …
var serverReady …
var certFile …
var privKeyFile …
var httpOverride …
var udpListenAddresses …
var delayShutdown …
const bindToAny …
var CmdNetexec …
func init() { … }
type atomicBool …
func (a *atomicBool) set(value bool) { … }
func (a *atomicBool) get() bool { … }
func main(cmd *cobra.Command, args []string) { … }
func addRoutes(mux *http.ServeMux, sigTermReceived chan struct{ … }
func startServer(server *http.Server, exitCh chan shutdownRequest, fn func() error) { … }
func rootHandler(w http.ResponseWriter, r *http.Request) { … }
func echoHandler(w http.ResponseWriter, r *http.Request) { … }
func clientIPHandler(w http.ResponseWriter, r *http.Request) { … }
func headerHandler(w http.ResponseWriter, r *http.Request) { … }
type shutdownRequest …
func exitHandler(w http.ResponseWriter, r *http.Request, exitCh chan<- shutdownRequest) { … }
func hostnameHandler(w http.ResponseWriter, r *http.Request) { … }
func healthzHandler(w http.ResponseWriter, r *http.Request) { … }
func readyzHandler(sigTermReceived chan struct{ … }
func shutdownHandler(w http.ResponseWriter, r *http.Request) { … }
func dialHandler(w http.ResponseWriter, r *http.Request) { … }
func dialHTTP(request string, addr net.Addr) (string, error) { … }
func createHTTPClient(transport *http.Transport) *http.Client { … }
func dialUDP(request string, addr net.Addr) (string, error) { … }
func dialSCTP(request string, addr net.Addr) (string, error) { … }
func shellHandler(w http.ResponseWriter, r *http.Request) { … }
func uploadHandler(w http.ResponseWriter, r *http.Request) { … }
func hostNameHandler(w http.ResponseWriter, r *http.Request) { … }
func redirectHandler(w http.ResponseWriter, r *http.Request) { … }
func startUDPServer(address string, udpPort int) { … }
func startSCTPServer(sctpPort int) { … }
func getHostName() string { … }
func assertNoError(err error, detail string) { … }
func parseAddresses(addresses string) ([]string, error) { … }