proxy

package
v0.0.0-...-f308040 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package proxy is a wrapper around proxyguard that integrates it with eduvpn-common settings - leaves out some options not applicable to the common integration, e.g. fwmark - integrates with eduvpn-common's logger - integrates eduvpn-common's user agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct{}

Logger is defined here such that we can update the proxyguard logger

func (*Logger) Log

func (l *Logger) Log(msg string)

Log logs a message

func (*Logger) Logf

func (l *Logger) Logf(msg string, params ...interface{})

Logf logs a message with parameters

type Proxy

type Proxy struct {
	proxyguard.Client
	// contains filtered or unexported fields
}

func NewProxyguard

func NewProxyguard(ctx context.Context, lp int, tcpsp int, peer string, setupSocket func(fd int)) (*Proxy, error)

NewProxyguard sets up proxyguard for proxied WireGuard connections

func (*Proxy) Restart

func (p *Proxy) Restart()

func (*Proxy) Tunnel

func (p *Proxy) Tunnel(ctx context.Context, wglisten int) error

Jump to

Keyboard shortcuts

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