|
@@ -1,5 +1,7 @@
|
|
package option
|
|
package option
|
|
|
|
|
|
|
|
+import "github.com/sagernet/sing/common/json/badoption"
|
|
|
|
+
|
|
type HysteriaInboundOptions struct {
|
|
type HysteriaInboundOptions struct {
|
|
ListenOptions
|
|
ListenOptions
|
|
Up string `json:"up,omitempty"`
|
|
Up string `json:"up,omitempty"`
|
|
@@ -24,16 +26,18 @@ type HysteriaUser struct {
|
|
type HysteriaOutboundOptions struct {
|
|
type HysteriaOutboundOptions struct {
|
|
DialerOptions
|
|
DialerOptions
|
|
ServerOptions
|
|
ServerOptions
|
|
- Up string `json:"up,omitempty"`
|
|
|
|
- UpMbps int `json:"up_mbps,omitempty"`
|
|
|
|
- Down string `json:"down,omitempty"`
|
|
|
|
- DownMbps int `json:"down_mbps,omitempty"`
|
|
|
|
- Obfs string `json:"obfs,omitempty"`
|
|
|
|
- Auth []byte `json:"auth,omitempty"`
|
|
|
|
- AuthString string `json:"auth_str,omitempty"`
|
|
|
|
- ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"`
|
|
|
|
- ReceiveWindow uint64 `json:"recv_window,omitempty"`
|
|
|
|
- DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"`
|
|
|
|
- Network NetworkList `json:"network,omitempty"`
|
|
|
|
|
|
+ ServerPorts badoption.Listable[string] `json:"server_ports,omitempty"`
|
|
|
|
+ HopInterval badoption.Duration `json:"hop_interval,omitempty"`
|
|
|
|
+ Up string `json:"up,omitempty"`
|
|
|
|
+ UpMbps int `json:"up_mbps,omitempty"`
|
|
|
|
+ Down string `json:"down,omitempty"`
|
|
|
|
+ DownMbps int `json:"down_mbps,omitempty"`
|
|
|
|
+ Obfs string `json:"obfs,omitempty"`
|
|
|
|
+ Auth []byte `json:"auth,omitempty"`
|
|
|
|
+ AuthString string `json:"auth_str,omitempty"`
|
|
|
|
+ ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"`
|
|
|
|
+ ReceiveWindow uint64 `json:"recv_window,omitempty"`
|
|
|
|
+ DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"`
|
|
|
|
+ Network NetworkList `json:"network,omitempty"`
|
|
OutboundTLSOptionsContainer
|
|
OutboundTLSOptionsContainer
|
|
}
|
|
}
|