sing-box/option/wireguard.go

18 lines
835 B
Go
Raw Permalink Normal View History

2022-08-16 15:37:51 +00:00
package option
type WireGuardOutboundOptions struct {
2022-09-03 04:55:10 +00:00
DialerOptions
2022-08-16 15:37:51 +00:00
ServerOptions
2022-09-05 16:15:09 +00:00
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"`
PreSharedKey string `json:"pre_shared_key,omitempty"`
Reserved []uint8 `json:"reserved,omitempty"`
Workers int `json:"workers,omitempty"`
2022-09-05 16:15:09 +00:00
MTU uint32 `json:"mtu,omitempty"`
Network NetworkList `json:"network,omitempty"`
2023-03-21 13:36:17 +00:00
IPRewrite bool `json:"ip_rewrite,omitempty"`
2022-08-16 15:37:51 +00:00
}