github.com/yaling888/clash@v1.53.0/transport/header/wireguard/wireguard.go (about) 1 package wireguard 2 3 type Wireguard struct{} 4 5 func (*Wireguard) Size() int { 6 return 4 7 } 8 9 func (*Wireguard) Fill(b []byte) { 10 b[0] = 0x04 11 b[1] = 0x00 12 b[2] = 0x00 13 b[3] = 0x00 14 } 15 16 func New() *Wireguard { 17 return &Wireguard{} 18 }