Documentation ¶
Index ¶
- func MarshallObjects(objects ...any) ([]byte, error)
- func MergeObjects(objects ...any) (*badjson.JSONObject, error)
- func ToMap(v any) (*badjson.JSONObject, error)
- func UnmarshallExcluded(inputContent []byte, parentObject any, object any) error
- type ACMEExternalAccountOptions
- type ClashAPIOptions
- type DNSClientOptions
- type DNSOptions
- type DNSRule
- type DNSServerOptions
- type DefaultDNSRule
- type DefaultRule
- type DialerOptions
- type DirectInboundOptions
- type DirectOutboundOptions
- type DomainStrategy
- type Duration
- type ExperimentalOptions
- type GeoIPOptions
- type GeositeOptions
- type HTTPMixedInboundOptions
- type HTTPOutboundOptions
- type HysteriaInboundOptions
- type HysteriaOutboundOptions
- type HysteriaUser
- type Inbound
- type InboundACMEOptions
- type InboundOptions
- type InboundTLSOptions
- type Listable
- type ListenAddress
- type ListenOptions
- type ListenPrefix
- type LogOptions
- type LogicalDNSRule
- type LogicalRule
- type MultiplexOptions
- type NaiveInboundOptions
- type NetworkList
- type Options
- type Outbound
- type OutboundECHOptions
- type OutboundTLSOptions
- type OutboundUTLSOptions
- type RedirectInboundOptions
- type RouteOptions
- type Rule
- type SSHOutboundOptions
- type SelectorOutboundOptions
- type ServerOptions
- type ShadowTLSHandshakeOptions
- type ShadowTLSInboundOptions
- type ShadowTLSOutboundOptions
- type ShadowsocksDestination
- type ShadowsocksInboundOptions
- type ShadowsocksOutboundOptions
- type ShadowsocksROutboundOptions
- type ShadowsocksUser
- type SocksInboundOptions
- type SocksOutboundOptions
- type TProxyInboundOptions
- type TorOutboundOptions
- type TrojanInboundOptions
- type TrojanOutboundOptions
- type TrojanUser
- type TunInboundOptions
- type URLTestOutboundOptions
- type V2RayAPIOptions
- type V2RayGRPCOptions
- type V2RayHTTPOptions
- type V2RayQUICOptions
- type V2RayStatsServiceOptions
- type V2RayTransportOptions
- type V2RayWebsocketOptions
- type VLESSOutboundOptions
- type VMessInboundOptions
- type VMessOutboundOptions
- type VMessUser
- type WireGuardOutboundOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshallObjects ¶
func MergeObjects ¶
func MergeObjects(objects ...any) (*badjson.JSONObject, error)
Types ¶
type ACMEExternalAccountOptions ¶ added in v1.0.1
type ClashAPIOptions ¶
type ClashAPIOptions struct { ExternalController string `json:"external_controller,omitempty"` ExternalUI string `json:"external_ui,omitempty"` Secret string `json:"secret,omitempty"` DefaultMode string `json:"default_mode,omitempty"` StoreSelected bool `json:"store_selected,omitempty"` CacheFile string `json:"cache_file,omitempty"` }
type DNSClientOptions ¶
type DNSClientOptions struct { Strategy DomainStrategy `json:"strategy,omitempty"` DisableCache bool `json:"disable_cache,omitempty"` DisableExpire bool `json:"disable_expire,omitempty"` }
type DNSOptions ¶
type DNSOptions struct { Servers []DNSServerOptions `json:"servers,omitempty"` Rules []DNSRule `json:"rules,omitempty"` Final string `json:"final,omitempty"` DNSClientOptions }
type DNSServerOptions ¶
type DNSServerOptions struct { Tag string `json:"tag,omitempty"` Address string `json:"address"` AddressResolver string `json:"address_resolver,omitempty"` AddressStrategy DomainStrategy `json:"address_strategy,omitempty"` AddressFallbackDelay Duration `json:"address_fallback_delay,omitempty"` Strategy DomainStrategy `json:"strategy,omitempty"` Detour string `json:"detour,omitempty"` }
type DefaultDNSRule ¶
type DefaultDNSRule struct { Inbound Listable[string] `json:"inbound,omitempty"` IPVersion int `json:"ip_version,omitempty"` Network string `json:"network,omitempty"` AuthUser Listable[string] `json:"auth_user,omitempty"` Protocol Listable[string] `json:"protocol,omitempty"` Domain Listable[string] `json:"domain,omitempty"` DomainSuffix Listable[string] `json:"domain_suffix,omitempty"` DomainKeyword Listable[string] `json:"domain_keyword,omitempty"` DomainRegex Listable[string] `json:"domain_regex,omitempty"` Geosite Listable[string] `json:"geosite,omitempty"` SourceGeoIP Listable[string] `json:"source_geoip,omitempty"` SourceIPCIDR Listable[string] `json:"source_ip_cidr,omitempty"` SourcePort Listable[uint16] `json:"source_port,omitempty"` SourcePortRange Listable[string] `json:"source_port_range,omitempty"` Port Listable[uint16] `json:"port,omitempty"` PortRange Listable[string] `json:"port_range,omitempty"` ProcessName Listable[string] `json:"process_name,omitempty"` ProcessPath Listable[string] `json:"process_path,omitempty"` PackageName Listable[string] `json:"package_name,omitempty"` User Listable[string] `json:"user,omitempty"` UserID Listable[int32] `json:"user_id,omitempty"` Outbound Listable[string] `json:"outbound,omitempty"` ClashMode string `json:"clash_mode,omitempty"` Invert bool `json:"invert,omitempty"` Server string `json:"server,omitempty"` DisableCache bool `json:"disable_cache,omitempty"` }
func (DefaultDNSRule) IsValid ¶
func (r DefaultDNSRule) IsValid() bool
type DefaultRule ¶
type DefaultRule struct { Inbound Listable[string] `json:"inbound,omitempty"` IPVersion int `json:"ip_version,omitempty"` Network string `json:"network,omitempty"` AuthUser Listable[string] `json:"auth_user,omitempty"` Protocol Listable[string] `json:"protocol,omitempty"` Domain Listable[string] `json:"domain,omitempty"` DomainSuffix Listable[string] `json:"domain_suffix,omitempty"` DomainKeyword Listable[string] `json:"domain_keyword,omitempty"` DomainRegex Listable[string] `json:"domain_regex,omitempty"` Geosite Listable[string] `json:"geosite,omitempty"` SourceGeoIP Listable[string] `json:"source_geoip,omitempty"` GeoIP Listable[string] `json:"geoip,omitempty"` SourceIPCIDR Listable[string] `json:"source_ip_cidr,omitempty"` IPCIDR Listable[string] `json:"ip_cidr,omitempty"` SourcePort Listable[uint16] `json:"source_port,omitempty"` SourcePortRange Listable[string] `json:"source_port_range,omitempty"` Port Listable[uint16] `json:"port,omitempty"` PortRange Listable[string] `json:"port_range,omitempty"` ProcessName Listable[string] `json:"process_name,omitempty"` ProcessPath Listable[string] `json:"process_path,omitempty"` PackageName Listable[string] `json:"package_name,omitempty"` User Listable[string] `json:"user,omitempty"` UserID Listable[int32] `json:"user_id,omitempty"` ClashMode string `json:"clash_mode,omitempty"` Invert bool `json:"invert,omitempty"` Outbound string `json:"outbound,omitempty"` }
func (DefaultRule) IsValid ¶
func (r DefaultRule) IsValid() bool
type DialerOptions ¶
type DialerOptions struct { Detour string `json:"detour,omitempty"` BindInterface string `json:"bind_interface,omitempty"` Inet4BindAddress *ListenAddress `json:"inet4_bind_address,omitempty"` Inet6BindAddress *ListenAddress `json:"inet6_bind_address,omitempty"` ProtectPath string `json:"protect_path,omitempty"` RoutingMark int `json:"routing_mark,omitempty"` ReuseAddr bool `json:"reuse_addr,omitempty"` ConnectTimeout Duration `json:"connect_timeout,omitempty"` TCPFastOpen bool `json:"tcp_fast_open,omitempty"` UDPFragment *bool `json:"udp_fragment,omitempty"` UDPFragmentDefault bool `json:"-"` DomainStrategy DomainStrategy `json:"domain_strategy,omitempty"` FallbackDelay Duration `json:"fallback_delay,omitempty"` }
type DirectInboundOptions ¶
type DirectInboundOptions struct { ListenOptions Network NetworkList `json:"network,omitempty"` OverrideAddress string `json:"override_address,omitempty"` OverridePort uint16 `json:"override_port,omitempty"` }
type DirectOutboundOptions ¶
type DirectOutboundOptions struct { DialerOptions OverrideAddress string `json:"override_address,omitempty"` OverridePort uint16 `json:"override_port,omitempty"` ProxyProtocol uint8 `json:"proxy_protocol,omitempty"` }
type DomainStrategy ¶
type DomainStrategy dns.DomainStrategy
func (DomainStrategy) MarshalJSON ¶
func (s DomainStrategy) MarshalJSON() ([]byte, error)
func (*DomainStrategy) UnmarshalJSON ¶
func (s *DomainStrategy) UnmarshalJSON(bytes []byte) error
type ExperimentalOptions ¶
type ExperimentalOptions struct { ClashAPI *ClashAPIOptions `json:"clash_api,omitempty"` V2RayAPI *V2RayAPIOptions `json:"v2ray_api,omitempty"` }
type GeoIPOptions ¶
type GeositeOptions ¶
type HTTPMixedInboundOptions ¶
type HTTPMixedInboundOptions struct { ListenOptions Users []auth.User `json:"users,omitempty"` SetSystemProxy bool `json:"set_system_proxy,omitempty"` TLS *InboundTLSOptions `json:"tls,omitempty"` }
type HTTPOutboundOptions ¶
type HTTPOutboundOptions struct { DialerOptions ServerOptions Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` TLS *OutboundTLSOptions `json:"tls,omitempty"` }
type HysteriaInboundOptions ¶ added in v1.0.1
type HysteriaInboundOptions struct { ListenOptions 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"` Users []HysteriaUser `json:"users,omitempty"` ReceiveWindowConn uint64 `json:"recv_window_conn,omitempty"` ReceiveWindowClient uint64 `json:"recv_window_client,omitempty"` MaxConnClient int `json:"max_conn_client,omitempty"` DisableMTUDiscovery bool `json:"disable_mtu_discovery,omitempty"` TLS *InboundTLSOptions `json:"tls,omitempty"` }
type HysteriaOutboundOptions ¶ added in v1.0.1
type HysteriaOutboundOptions struct { DialerOptions 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"` TLS *OutboundTLSOptions `json:"tls,omitempty"` }
type HysteriaUser ¶ added in v1.1.0
type InboundACMEOptions ¶ added in v1.0.1
type InboundACMEOptions struct { Domain Listable[string] `json:"domain,omitempty"` DataDirectory string `json:"data_directory,omitempty"` DefaultServerName string `json:"default_server_name,omitempty"` Email string `json:"email,omitempty"` Provider string `json:"provider,omitempty"` DisableHTTPChallenge bool `json:"disable_http_challenge,omitempty"` DisableTLSALPNChallenge bool `json:"disable_tls_alpn_challenge,omitempty"` AlternativeHTTPPort uint16 `json:"alternative_http_port,omitempty"` AlternativeTLSPort uint16 `json:"alternative_tls_port,omitempty"` ExternalAccount *ACMEExternalAccountOptions `json:"external_account,omitempty"` }
type InboundOptions ¶
type InboundOptions struct { SniffEnabled bool `json:"sniff,omitempty"` SniffOverrideDestination bool `json:"sniff_override_destination,omitempty"` SniffTimeout Duration `json:"sniff_timeout,omitempty"` DomainStrategy DomainStrategy `json:"domain_strategy,omitempty"` }
type InboundTLSOptions ¶
type InboundTLSOptions struct { Enabled bool `json:"enabled,omitempty"` ServerName string `json:"server_name,omitempty"` Insecure bool `json:"insecure,omitempty"` ALPN Listable[string] `json:"alpn,omitempty"` MinVersion string `json:"min_version,omitempty"` MaxVersion string `json:"max_version,omitempty"` CipherSuites Listable[string] `json:"cipher_suites,omitempty"` Certificate string `json:"certificate,omitempty"` CertificatePath string `json:"certificate_path,omitempty"` Key string `json:"key,omitempty"` KeyPath string `json:"key_path,omitempty"` ACME *InboundACMEOptions `json:"acme,omitempty"` }
type Listable ¶
type Listable[T comparable] []T
func (Listable[T]) MarshalJSON ¶
func (*Listable[T]) UnmarshalJSON ¶
type ListenAddress ¶
func (ListenAddress) Build ¶ added in v1.0.1
func (a ListenAddress) Build() netip.Addr
func (ListenAddress) MarshalJSON ¶
func (a ListenAddress) MarshalJSON() ([]byte, error)
func (*ListenAddress) UnmarshalJSON ¶
func (a *ListenAddress) UnmarshalJSON(content []byte) error
type ListenOptions ¶
type ListenOptions struct { Listen ListenAddress `json:"listen"` ListenPort uint16 `json:"listen_port,omitempty"` TCPFastOpen bool `json:"tcp_fast_open,omitempty"` UDPFragment bool `json:"udp_fragment,omitempty"` UDPTimeout int64 `json:"udp_timeout,omitempty"` ProxyProtocol bool `json:"proxy_protocol,omitempty"` ProxyProtocolAcceptNoHeader bool `json:"proxy_protocol_accept_no_header,omitempty"` Detour string `json:"detour,omitempty"` InboundOptions }
type ListenPrefix ¶
func (ListenPrefix) Build ¶
func (p ListenPrefix) Build() netip.Prefix
func (ListenPrefix) MarshalJSON ¶
func (p ListenPrefix) MarshalJSON() ([]byte, error)
func (*ListenPrefix) UnmarshalJSON ¶
func (p *ListenPrefix) UnmarshalJSON(bytes []byte) error
type LogOptions ¶
type LogicalDNSRule ¶
type LogicalDNSRule struct { Mode string `json:"mode"` Rules []DefaultDNSRule `json:"rules,omitempty"` Invert bool `json:"invert,omitempty"` Server string `json:"server,omitempty"` DisableCache bool `json:"disable_cache,omitempty"` }
func (LogicalDNSRule) IsValid ¶
func (r LogicalDNSRule) IsValid() bool
type LogicalRule ¶
type LogicalRule struct { Mode string `json:"mode"` Rules []DefaultRule `json:"rules,omitempty"` Invert bool `json:"invert,omitempty"` Outbound string `json:"outbound,omitempty"` }
func (LogicalRule) IsValid ¶
func (r LogicalRule) IsValid() bool
type MultiplexOptions ¶
type NaiveInboundOptions ¶
type NaiveInboundOptions struct { ListenOptions Users []auth.User `json:"users,omitempty"` Network NetworkList `json:"network,omitempty"` TLS *InboundTLSOptions `json:"tls,omitempty"` }
type NetworkList ¶
type NetworkList string
func (NetworkList) Build ¶
func (v NetworkList) Build() []string
func (*NetworkList) UnmarshalJSON ¶
func (v *NetworkList) UnmarshalJSON(content []byte) error
type Outbound ¶
type Outbound _Outbound
func (Outbound) MarshalJSON ¶
func (*Outbound) UnmarshalJSON ¶
type OutboundECHOptions ¶ added in v1.1.0
type OutboundTLSOptions ¶
type OutboundTLSOptions struct { Enabled bool `json:"enabled,omitempty"` DisableSNI bool `json:"disable_sni,omitempty"` ServerName string `json:"server_name,omitempty"` Insecure bool `json:"insecure,omitempty"` ALPN Listable[string] `json:"alpn,omitempty"` MinVersion string `json:"min_version,omitempty"` MaxVersion string `json:"max_version,omitempty"` CipherSuites Listable[string] `json:"cipher_suites,omitempty"` Certificate string `json:"certificate,omitempty"` CertificatePath string `json:"certificate_path,omitempty"` ECH *OutboundECHOptions `json:"ech,omitempty"` UTLS *OutboundUTLSOptions `json:"utls,omitempty"` }
type OutboundUTLSOptions ¶ added in v1.1.0
type RedirectInboundOptions ¶
type RedirectInboundOptions struct {
ListenOptions
}
type RouteOptions ¶
type RouteOptions struct { GeoIP *GeoIPOptions `json:"geoip,omitempty"` Geosite *GeositeOptions `json:"geosite,omitempty"` Rules []Rule `json:"rules,omitempty"` Final string `json:"final,omitempty"` FindProcess bool `json:"find_process,omitempty"` AutoDetectInterface bool `json:"auto_detect_interface,omitempty"` OverrideAndroidVPN bool `json:"override_android_vpn,omitempty"` DefaultInterface string `json:"default_interface,omitempty"` DefaultMark int `json:"default_mark,omitempty"` }
type SSHOutboundOptions ¶ added in v1.0.1
type SSHOutboundOptions struct { DialerOptions ServerOptions User string `json:"user,omitempty"` Password string `json:"password,omitempty"` PrivateKey string `json:"private_key,omitempty"` PrivateKeyPath string `json:"private_key_path,omitempty"` PrivateKeyPassphrase string `json:"private_key_passphrase,omitempty"` HostKeyAlgorithms Listable[string] `json:"host_key_algorithms,omitempty"` ClientVersion string `json:"client_version,omitempty"` }
type SelectorOutboundOptions ¶
type ServerOptions ¶
func (ServerOptions) Build ¶
func (o ServerOptions) Build() M.Socksaddr
type ShadowTLSHandshakeOptions ¶ added in v1.0.1
type ShadowTLSHandshakeOptions struct { ServerOptions DialerOptions }
type ShadowTLSInboundOptions ¶ added in v1.0.1
type ShadowTLSInboundOptions struct { ListenOptions Version int `json:"version,omitempty"` Password string `json:"password,omitempty"` FallbackAfter *int `json:"fallback_after,omitempty"` Handshake ShadowTLSHandshakeOptions `json:"handshake"` }
type ShadowTLSOutboundOptions ¶ added in v1.0.1
type ShadowTLSOutboundOptions struct { DialerOptions ServerOptions Version int `json:"version,omitempty"` Password string `json:"password,omitempty"` TLS *OutboundTLSOptions `json:"tls,omitempty"` }
type ShadowsocksDestination ¶
type ShadowsocksDestination struct { Name string `json:"name"` Password string `json:"password"` ServerOptions }
type ShadowsocksInboundOptions ¶
type ShadowsocksInboundOptions struct { ListenOptions Network NetworkList `json:"network,omitempty"` Method string `json:"method"` Password string `json:"password"` Users []ShadowsocksUser `json:"users,omitempty"` Destinations []ShadowsocksDestination `json:"destinations,omitempty"` }
type ShadowsocksOutboundOptions ¶
type ShadowsocksOutboundOptions struct { DialerOptions ServerOptions Method string `json:"method"` Password string `json:"password"` Plugin string `json:"plugin,omitempty"` PluginOptions string `json:"plugin_opts,omitempty"` Network NetworkList `json:"network,omitempty"` UoT bool `json:"udp_over_tcp,omitempty"` MultiplexOptions *MultiplexOptions `json:"multiplex,omitempty"` }
type ShadowsocksROutboundOptions ¶ added in v1.1.0
type ShadowsocksROutboundOptions struct { DialerOptions ServerOptions Method string `json:"method"` Password string `json:"password"` Obfs string `json:"obfs,omitempty"` ObfsParam string `json:"obfs_param,omitempty"` Protocol string `json:"protocol,omitempty"` ProtocolParam string `json:"protocol_param,omitempty"` Network NetworkList `json:"network,omitempty"` }
type ShadowsocksUser ¶
type SocksInboundOptions ¶
type SocksInboundOptions struct { ListenOptions Users []auth.User `json:"users,omitempty"` }
type SocksOutboundOptions ¶
type SocksOutboundOptions struct { DialerOptions ServerOptions Version string `json:"version,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` Network NetworkList `json:"network,omitempty"` UoT bool `json:"udp_over_tcp,omitempty"` }
type TProxyInboundOptions ¶
type TProxyInboundOptions struct { ListenOptions Network NetworkList `json:"network,omitempty"` }
type TorOutboundOptions ¶ added in v1.0.1
type TrojanInboundOptions ¶
type TrojanInboundOptions struct { ListenOptions Users []TrojanUser `json:"users,omitempty"` TLS *InboundTLSOptions `json:"tls,omitempty"` Fallback *ServerOptions `json:"fallback,omitempty"` FallbackForALPN map[string]*ServerOptions `json:"fallback_for_alpn,omitempty"` Transport *V2RayTransportOptions `json:"transport,omitempty"` }
type TrojanOutboundOptions ¶
type TrojanOutboundOptions struct { DialerOptions ServerOptions Password string `json:"password"` Network NetworkList `json:"network,omitempty"` TLS *OutboundTLSOptions `json:"tls,omitempty"` Multiplex *MultiplexOptions `json:"multiplex,omitempty"` Transport *V2RayTransportOptions `json:"transport,omitempty"` }
type TrojanUser ¶
type TunInboundOptions ¶
type TunInboundOptions struct { InterfaceName string `json:"interface_name,omitempty"` MTU uint32 `json:"mtu,omitempty"` Inet4Address Listable[ListenPrefix] `json:"inet4_address,omitempty"` Inet6Address Listable[ListenPrefix] `json:"inet6_address,omitempty"` AutoRoute bool `json:"auto_route,omitempty"` StrictRoute bool `json:"strict_route,omitempty"` Inet4RouteAddress Listable[ListenPrefix] `json:"inet4_route_address,omitempty"` Inet6RouteAddress Listable[ListenPrefix] `json:"inet6_route_address,omitempty"` IncludeUID Listable[uint32] `json:"include_uid,omitempty"` IncludeUIDRange Listable[string] `json:"include_uid_range,omitempty"` ExcludeUID Listable[uint32] `json:"exclude_uid,omitempty"` ExcludeUIDRange Listable[string] `json:"exclude_uid_range,omitempty"` IncludeAndroidUser Listable[int] `json:"include_android_user,omitempty"` IncludePackage Listable[string] `json:"include_package,omitempty"` ExcludePackage Listable[string] `json:"exclude_package,omitempty"` EndpointIndependentNat bool `json:"endpoint_independent_nat,omitempty"` UDPTimeout int64 `json:"udp_timeout,omitempty"` Stack string `json:"stack,omitempty"` InboundOptions }
type URLTestOutboundOptions ¶ added in v1.1.0
type V2RayAPIOptions ¶ added in v1.1.0
type V2RayAPIOptions struct { Listen string `json:"listen,omitempty"` Stats *V2RayStatsServiceOptions `json:"stats,omitempty"` }
type V2RayGRPCOptions ¶ added in v1.0.1
type V2RayHTTPOptions ¶ added in v1.0.1
type V2RayQUICOptions ¶ added in v1.0.1
type V2RayQUICOptions struct{}
type V2RayStatsServiceOptions ¶ added in v1.1.0
type V2RayTransportOptions ¶ added in v1.0.1
type V2RayTransportOptions _V2RayTransportOptions
func (V2RayTransportOptions) MarshalJSON ¶ added in v1.0.1
func (o V2RayTransportOptions) MarshalJSON() ([]byte, error)
func (*V2RayTransportOptions) UnmarshalJSON ¶ added in v1.0.1
func (o *V2RayTransportOptions) UnmarshalJSON(bytes []byte) error
type V2RayWebsocketOptions ¶ added in v1.0.1
type VLESSOutboundOptions ¶ added in v1.1.0
type VLESSOutboundOptions struct { DialerOptions ServerOptions UUID string `json:"uuid"` Network NetworkList `json:"network,omitempty"` TLS *OutboundTLSOptions `json:"tls,omitempty"` Transport *V2RayTransportOptions `json:"transport,omitempty"` PacketEncoding string `json:"packet_encoding,omitempty"` }
type VMessInboundOptions ¶
type VMessInboundOptions struct { ListenOptions Users []VMessUser `json:"users,omitempty"` TLS *InboundTLSOptions `json:"tls,omitempty"` Transport *V2RayTransportOptions `json:"transport,omitempty"` }
type VMessOutboundOptions ¶
type VMessOutboundOptions struct { DialerOptions ServerOptions UUID string `json:"uuid"` Security string `json:"security"` AlterId int `json:"alter_id,omitempty"` GlobalPadding bool `json:"global_padding,omitempty"` AuthenticatedLength bool `json:"authenticated_length,omitempty"` Network NetworkList `json:"network,omitempty"` TLS *OutboundTLSOptions `json:"tls,omitempty"` PacketEncoding string `json:"packet_encoding,omitempty"` Multiplex *MultiplexOptions `json:"multiplex,omitempty"` Transport *V2RayTransportOptions `json:"transport,omitempty"` }
type WireGuardOutboundOptions ¶ added in v1.0.1
type WireGuardOutboundOptions struct { DialerOptions ServerOptions SystemInterface bool `json:"system_interface,omitempty"` InterfaceName string `json:"interface_name,omitempty"` LocalAddress Listable[ListenPrefix] `json:"local_address"` PrivateKey string `json:"private_key"` PeerPublicKey string `json:"peer_public_key"` Reserved []uint8 `json:"reserved,omitempty"` Workers int `json:"workers,omitempty"` MTU uint32 `json:"mtu,omitempty"` Network NetworkList `json:"network,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.