server

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package server is running wallhack in server mode. It listens on a listener given by systemd and attempts to attach tun interfaces identified by the certificate of connecting clients. It then streams frames between the connection and the tun.

Index

Constants

View Source
const (
	// HTTPPluginPathEnvName is the environment name that contains the path to a go plugin that is loaded by wallhack
	// for serving extra HTTP stuff.
	HTTPPluginPathEnvName = "WALLHACK_HTTP_PLUGIN"

	// HTTPPluginServerSetupSymbolName is the name of the symbol within the HTTP plugin that is responsible for
	// setting up a given http server for the plugins purpose. Needs to have the signature func(*http.Server) error.
	HTTPPluginServerSetupSymbolName = "SetupHTTPServer"
	// HTTPPluginTLSConfigSetupSymbolName is the name of the symbol within the HTTP plugin that is responsible for
	// setting up a given tls config for the plugins purpose. Needs to have the signature func(*tls.Config) error.
	HTTPPluginTLSConfigSetupSymbolName = "SetupTLSConfig"
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, log logr.Logger, credentials credentials.Server) error

Run wallhack in server mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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