#
# Shater desired-state config (/etc/config/shater).
#
# This shipped default is intentionally INERT: globals.enabled='0' means the
# init script opens no instance and touches nothing, so a fresh install cannot
# affect connectivity. Configure via the LuCI app (or uci), set enabled='1',
# then apply (xrayctl apply / ubus call xray apply).
#
# Full schema: see CONTRACT.md. xrayctl renders xray JSON + nft + policy-routing
# from this file; do not hand-edit /etc/xray/run.json (it is generated).
#
# This file is installed as a conffile — your edits survive package upgrades.
#

config globals 'globals'
	option enabled '0'
	option loglevel 'warning'
	option kill_switch 'closed'
	option dns_mode 'nftset'
	option ipv6 '1'
	# Reserved fwmark base and routing-table base (do not overlap fw4/other apps).
	option fwmark_base '0x2000'
	option table_base '0x2000'
	option confirm_timeout '0'
	option schema_version '1'

# Example LAN interception inbound (disabled). Enable and adjust `network` to the
# UCI interface(s) to transparently proxy, then set globals.enabled='1'.
config inbound
	option name 'lan'
	option enabled '0'
	option network 'lan'
	option tproxy_port '12345'
	option tcp '1'
	option udp '1'
	option sniff '1'
