utils

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoute added in v0.0.9

func AddRoute(ip, gateway string) error

AddRoute adds a new route to the routing table

func GetDefaultNonVPNGateway

func GetDefaultNonVPNGateway() (string, error)

func RemoveRoute added in v0.0.9

func RemoveRoute(ip string) error

RemoveRoute removes a route from the routing table

func ResolveDomain added in v0.0.3

func ResolveDomain(domain string) ([]string, error)

func SlicesEqual added in v0.0.8

func SlicesEqual(a, b []string) bool

SlicesEqual checks if two string slices are equal

Types

This section is empty.

Jump to

Keyboard shortcuts

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