sysproxy

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sysproxy points the operating system's HTTP/HTTPS proxy at Interceptor (and turns it back off). It only ever acts on an explicit user request — it is never enabled automatically. macOS is supported via `networksetup`; on other platforms callers should set the proxy (127.0.0.1:8080) manually.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable() error

Disable turns the system web/secure-web proxy off on the active services.

func Enable

func Enable(host string, port int) error

Enable routes the active network services through host:port (web + secure web).

func Status

func Status() (bool, error)

Status reports whether the system web proxy is currently on (best-effort: the first active service).

func Supported

func Supported() bool

Supported reports whether automatic configuration is available on this OS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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