mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
vnet: update tun_unsupported function (#4752)
This commit is contained in:
parent
a78814a2e9
commit
e208043323
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue