github.com/yaling888/clash@v1.53.0/adapter/outbound/wireguard.go (about)

     1  package outbound
     2  
     3  type WireGuardOption struct {
     4  	BasicOption
     5  	Name             string   `proxy:"name"`
     6  	Server           string   `proxy:"server"`
     7  	Port             int      `proxy:"port"`
     8  	IP               string   `proxy:"ip,omitempty"`
     9  	IPv6             string   `proxy:"ipv6,omitempty"`
    10  	PrivateKey       string   `proxy:"private-key"`
    11  	PublicKey        string   `proxy:"public-key"`
    12  	PresharedKey     string   `proxy:"preshared-key,omitempty"`
    13  	DNS              []string `proxy:"dns,omitempty"`
    14  	MTU              int      `proxy:"mtu,omitempty"`
    15  	UDP              bool     `proxy:"udp,omitempty"`
    16  	RemoteDnsResolve bool     `proxy:"remote-dns-resolve,omitempty"`
    17  	Reserved         string   `proxy:"reserved,omitempty"`
    18  }