Skip to content

App Configuration

Application-level settings including mode, logging, and system integration.

app-mode

type: string

Description

Specifies the proxy mode. (default: "http")

Allowed Values

  • http: HTTP proxy mode
  • socks5: SOCKS5 proxy mode
  • tun: TUN interface mode (transparent proxy)

Warning

SOCKS5 and TUN modes are currently Experimental. You might encounter unexpected behaviors or bugs. Feedback and bug reports are highly appreciated!

Usage

Command-Line Flag

$ spoofdpi --app-mode socks5

TOML Config

[app]
mode = "socks5"


listen-addr

type: <ip:port>

Description

Specifies the IP address and port to listen on. (default: 127.0.0.1:8080 for http, 127.0.0.1:1080 for socks5)

If you want to run spoofdpi remotely (e.g., on a physically separated machine), set the IP part to 0.0.0.0. Otherwise, it is recommended to leave this option as default for security.

Usage

Command-Line Flag

$ spoofdpi --listen-addr "0.0.0.0:8080"

TOML Config

[app]
listen-addr = "0.0.0.0:8080"


log-level

type: string

Description

Specifies the logging verbosity.

Available values are debug, trace, info, warn, error, and disabled. (default: "info")

Usage

Command-Line Flag

$ spoofdpi --log-level trace

TOML Config

[app]
log-level = "trace"


silent

type: boolean

Description

Suppresses the ASCII art banner at startup. (default: false)

Usage

Command-Line Flag

$ spoofdpi --silent

TOML Config

[app]
silent = true


auto-configure-network

type: boolean

Description

Specifies whether to automatically set up the system-wide proxy configuration. (default: false)

Important

This option is currently only supported on macOS.

Usage

Command-Line Flag

$ spoofdpi --auto-configure-network

TOML Config

[app]
auto-configure-network = true


config

type: string

Description

Specifies the path to a custom TOML config file. (default: none)

If this option is set, spoofdpi will not search the default directories.

Usage

Command-Line Flag

$ spoofdpi --config ~/spoofdpi.toml

TOML Config

# This option is not available in TOML config


clean

type: boolean

Description

Specifies whether to ignore all configuration files and run with default settings. (default: false)

Usage

Command-Line Flag

$ spoofdpi --clean

TOML Config

# This option is not available in TOML config


version

type: boolean

Description

Prints the version string and exits. (default: false)

Usage

Command-Line Flag

$ spoofdpi --version

TOML Config

# This option is not available in TOML config