Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger func(string, ...interface{})
Logger is a function interface that can be used for logging
type RedirectServer ¶
type RedirectServer struct { Status int Destination string IncludeRequest bool BlockOCSP bool FakeInternetAccess bool Logger Logger // contains filtered or unexported fields }
RedirectServer is a simple HTTP server that is used for serving captive portal or https redirects
func NewHTTPRedirect ¶
func NewHTTPRedirect() *RedirectServer
NewHTTPRedirect creates a new RedirectServer
func (*RedirectServer) ListenAndServe ¶
func (s *RedirectServer) ListenAndServe(addr string) error
ListenAndServe starts the redirect server
Click to show internal directories.
Click to hide internal directories.