wireguard.go 835 B

1234567891011121314151617
  1. package option
  2. type WireGuardOutboundOptions struct {
  3. DialerOptions
  4. ServerOptions
  5. SystemInterface bool `json:"system_interface,omitempty"`
  6. InterfaceName string `json:"interface_name,omitempty"`
  7. LocalAddress Listable[ListenPrefix] `json:"local_address"`
  8. PrivateKey string `json:"private_key"`
  9. PeerPublicKey string `json:"peer_public_key"`
  10. PreSharedKey string `json:"pre_shared_key,omitempty"`
  11. Reserved []uint8 `json:"reserved,omitempty"`
  12. Workers int `json:"workers,omitempty"`
  13. MTU uint32 `json:"mtu,omitempty"`
  14. Network NetworkList `json:"network,omitempty"`
  15. IPRewrite bool `json:"ip_rewrite,omitempty"`
  16. }