sing-box/option/group.go

19 lines
808 B
Go
Raw Permalink Normal View History

2023-11-28 12:00:28 +08:00
package option
2024-11-07 21:44:04 +08:00
import "github.com/sagernet/sing/common/json/badoption"
2023-11-28 12:00:28 +08:00
type SelectorOutboundOptions struct {
Outbounds []string `json:"outbounds"`
Default string `json:"default,omitempty"`
InterruptExistConnections bool `json:"interrupt_exist_connections,omitempty"`
}
type URLTestOutboundOptions struct {
2024-11-07 21:44:04 +08:00
Outbounds []string `json:"outbounds"`
URL string `json:"url,omitempty"`
Interval badoption.Duration `json:"interval,omitempty"`
Tolerance uint16 `json:"tolerance,omitempty"`
IdleTimeout badoption.Duration `json:"idle_timeout,omitempty"`
InterruptExistConnections bool `json:"interrupt_exist_connections,omitempty"`
2023-11-28 12:00:28 +08:00
}