server

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: AGPL-3.0 Imports: 16 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 (
	// PluginPathEnvName is the environment name that contains the path to a go plugin that is loaded by wallhack
	// for serving extra stuff.
	PluginPathEnvName = "WALLHACK_PLUGIN_PATH"

	// PluginNewSymbolName is the name of the symbol within the plugin that is responsible for
	// returning the Plugin interface.
	PluginNewSymbolName = "New"
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, log logr.Logger, service *service.Service) error

Run wallhack in server mode.

Types

type Plugin added in v0.0.7

type Plugin interface {
	TLSConfig() *tls.Config
	Listen(context.Context, net.Listener) error
}

Plugin defines what methods a wallhack plugin needs to implement.

Directories

Path Synopsis
Package listener handles TLS ALPN routing magic.
Package listener handles TLS ALPN routing magic.

Jump to

Keyboard shortcuts

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