vnet: update tun_unsupported function

pull/4752/head
fatedier 2025-04-16 16:12:00 +08:00
parent a78814a2e9
commit ae64893ae2
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}