Documentation ¶
Index ¶
- func AliasIP(ctx context.Context, alias string) error
- func FreePort(preference int) (int, error)
- func IsElevated() (bool, error)
- func OpenPort(port int) bool
- func ResetSocksProxy() error
- func SetSocksProxy(host, port string) error
- func UnaliasIP(ctx context.Context, alias string) error
- type HostsSection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsElevated ¶
func ResetSocksProxy ¶ added in v0.12.0
func ResetSocksProxy() error
func SetSocksProxy ¶ added in v0.12.0
Types ¶
type HostsSection ¶ added in v0.15.0
type HostsSection struct {
// contains filtered or unexported fields
}
func NewHostsSection ¶ added in v0.15.0
func NewHostsSection(name string) (*HostsSection, error)
func (*HostsSection) Add ¶ added in v0.15.0
func (s *HostsSection) Add(address string, hosts ...string)
func (*HostsSection) Clear ¶ added in v0.15.0
func (s *HostsSection) Clear()
func (*HostsSection) Flush ¶ added in v0.15.0
func (s *HostsSection) Flush() error
func (*HostsSection) Remove ¶ added in v0.15.0
func (s *HostsSection) Remove(address string)
Click to show internal directories.
Click to hide internal directories.