vnet: update tun_unsupported function (#4752)

This commit is contained in:
fatedier 2025-04-16 16:17:26 +08:00 committed by GitHub
parent a78814a2e9
commit e208043323
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,8 +20,10 @@ import (
"context" "context"
"fmt" "fmt"
"runtime" "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) return nil, fmt.Errorf("virtual net is not supported on this platform (%s/%s)", runtime.GOOS, runtime.GOARCH)
} }