tyVpnServer

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	READONLY_vpnIpStart  = net.IP{172, 21, 0, 0}
	READONLY_vpnIpClient = net.IP{172, 21, 0, 1}
)

Functions

func RunCmd

func RunCmd(req ServerRunReq)

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) Run

func (s *Server) Run(config ServerRunReq)

type ServerRunReq

type ServerRunReq struct {
	UseRelay              bool
	RelayServerIp         string
	RelayServerTKey       string
	RelayServerChk        string
	SelfTKey              string
	NoNeedSelfTKey        bool
	BlockCountryCodeListS string // empty string do not block any country code, look like "KP,IR,RU"
	SelfIp                string
	RegisterToRouteServer bool
}

Jump to

Keyboard shortcuts

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