Browse Source

Wireguard inbound: Do not use kernel TUN (#3960)

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
uquic
风扇滑翔翼 3 weeks ago committed by RPRX
parent
commit
b7aacd3245
  1. 7
      proxy/wireguard/config.go

7
proxy/wireguard/config.go

@ -31,8 +31,13 @@ func (c *DeviceConfig) fallbackIP6() bool {
} }
func (c *DeviceConfig) createTun() tunCreator { func (c *DeviceConfig) createTun() tunCreator {
if !c.IsClient {
// See tun_linux.go createKernelTun()
errors.LogWarning(context.Background(), "Using gVisor TUN. WG inbound doesn't support kernel TUN yet.")
return createGVisorTun
}
if c.NoKernelTun { if c.NoKernelTun {
errors.LogWarning(context.Background(), "Using gVisor TUN.") errors.LogWarning(context.Background(), "Using gVisor TUN. NoKernelTun is set to true.")
return createGVisorTun return createGVisorTun
} }
kernelTunSupported, err := KernelTunSupported() kernelTunSupported, err := KernelTunSupported()

Loading…
Cancel
Save