77
88 "github.com/metacubex/mihomo/adapter/inbound"
99 "github.com/metacubex/mihomo/component/dialer"
10+ "github.com/metacubex/mihomo/component/process"
1011 "github.com/metacubex/mihomo/component/resolver"
1112 "github.com/metacubex/mihomo/component/updater"
1213 "github.com/metacubex/mihomo/config"
@@ -33,28 +34,29 @@ func configRouter() http.Handler {
3334}
3435
3536type configSchema struct {
36- Port * int `json:"port"`
37- SocksPort * int `json:"socks-port"`
38- RedirPort * int `json:"redir-port"`
39- TProxyPort * int `json:"tproxy-port"`
40- MixedPort * int `json:"mixed-port"`
41- Tun * tunSchema `json:"tun"`
42- TuicServer * tuicServerSchema `json:"tuic-server"`
43- ShadowSocksConfig * string `json:"ss-config"`
44- VmessConfig * string `json:"vmess-config"`
45- TcptunConfig * string `json:"tcptun-config"`
46- UdptunConfig * string `json:"udptun-config"`
47- AllowLan * bool `json:"allow-lan"`
48- SkipAuthPrefixes * []netip.Prefix `json:"skip-auth-prefixes"`
49- LanAllowedIPs * []netip.Prefix `json:"lan-allowed-ips"`
50- LanDisAllowedIPs * []netip.Prefix `json:"lan-disallowed-ips"`
51- BindAddress * string `json:"bind-address"`
52- Mode * tunnel.TunnelMode `json:"mode"`
53- LogLevel * log.LogLevel `json:"log-level"`
54- IPv6 * bool `json:"ipv6"`
55- Sniffing * bool `json:"sniffing"`
56- TcpConcurrent * bool `json:"tcp-concurrent"`
57- InterfaceName * string `json:"interface-name"`
37+ Port * int `json:"port"`
38+ SocksPort * int `json:"socks-port"`
39+ RedirPort * int `json:"redir-port"`
40+ TProxyPort * int `json:"tproxy-port"`
41+ MixedPort * int `json:"mixed-port"`
42+ Tun * tunSchema `json:"tun"`
43+ TuicServer * tuicServerSchema `json:"tuic-server"`
44+ ShadowSocksConfig * string `json:"ss-config"`
45+ VmessConfig * string `json:"vmess-config"`
46+ TcptunConfig * string `json:"tcptun-config"`
47+ UdptunConfig * string `json:"udptun-config"`
48+ AllowLan * bool `json:"allow-lan"`
49+ SkipAuthPrefixes * []netip.Prefix `json:"skip-auth-prefixes"`
50+ LanAllowedIPs * []netip.Prefix `json:"lan-allowed-ips"`
51+ LanDisAllowedIPs * []netip.Prefix `json:"lan-disallowed-ips"`
52+ BindAddress * string `json:"bind-address"`
53+ Mode * tunnel.TunnelMode `json:"mode"`
54+ LogLevel * log.LogLevel `json:"log-level"`
55+ IPv6 * bool `json:"ipv6"`
56+ Sniffing * bool `json:"sniffing"`
57+ TcpConcurrent * bool `json:"tcp-concurrent"`
58+ FindProcessMode * process.FindProcessMode `json:"find-process-mode"`
59+ InterfaceName * string `json:"interface-name"`
5860}
5961
6062type tunSchema struct {
@@ -341,6 +343,10 @@ func patchConfigs(w http.ResponseWriter, r *http.Request) {
341343 tunnel .SetMode (* general .Mode )
342344 }
343345
346+ if general .FindProcessMode != nil {
347+ tunnel .SetFindProcessMode (* general .FindProcessMode )
348+ }
349+
344350 if general .LogLevel != nil {
345351 log .SetLevel (* general .LogLevel )
346352 }
0 commit comments