Przeglądaj źródła

vnet: update tun_unsupported function (#4752)

fatedier 2 miesięcy temu
rodzic
commit
e208043323
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      pkg/vnet/tun_unsupported.go

+ 3 - 1
pkg/vnet/tun_unsupported.go

@@ -20,8 +20,10 @@ import (
 	"context"
 	"fmt"
 	"runtime"
+
+	"golang.zx2c4.com/wireguard/tun"
 )
 
-func openTun(ctx context.Context) (TunDevice, error) {
+func openTun(_ context.Context, _ string) (tun.Device, error) {
 	return nil, fmt.Errorf("virtual net is not supported on this platform (%s/%s)", runtime.GOOS, runtime.GOARCH)
 }