sysproxy

package
v0.0.0-...-d329b08 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDNSServers

func GetDNSServers() ([]string, error)

GetDNSServers used to get DNS servers.

func GetDefaultGateway

func GetDefaultGateway() (string, error)

GetDefaultGateway returns default gateway.

func GetNetworkInterface

func GetNetworkInterface() (string, error)

GetNetworkInterface returns default interface dev name.

func SetDNSServers

func SetDNSServers(servers []string) error

SetDNSServers used to set system DNS servers.

func TurnOffSystemProxy

func TurnOffSystemProxy() error

func TurnOnSystemProxy

func TurnOnSystemProxy(pac string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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