github.com/yaling888/clash@v1.53.0/adapter/outbound/wireguard_nogvisor.go (about) 1 //go:build nogvisor 2 3 package outbound 4 5 import ( 6 "context" 7 "fmt" 8 9 "github.com/yaling888/clash/component/dialer" 10 C "github.com/yaling888/clash/constant" 11 ) 12 13 var _ C.ProxyAdapter = (*WireGuard)(nil) 14 15 type WireGuard struct { 16 *Base 17 } 18 19 func (w *WireGuard) DialContext(_ context.Context, _ *C.Metadata, _ ...dialer.Option) (C.Conn, error) { 20 panic("unimplemented") 21 } 22 23 func (w *WireGuard) UpdateBind() {} 24 25 func NewWireGuard(_ WireGuardOption) (*WireGuard, error) { 26 return nil, fmt.Errorf("gVisor is not supported on this platform") 27 }