tun

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 7 Imported by: 0

README

Files in this directory are copied from https://github.com/yinghuocho/gotun2socks, with slightly modifies.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenTunDevice

func OpenTunDevice(name, addr, gw, mask string, dnsServers []string, persist bool, SkipGatewayFor string) (io.ReadWriteCloser, error)

func ParseIPv4Mask

func ParseIPv4Mask(s string) net.IPMask

Types

This section is empty.

Jump to

Keyboard shortcuts

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