diff --git a/proxy/wireguard/config.go b/proxy/wireguard/config.go index e8a6630f..cbaa670b 100644 --- a/proxy/wireguard/config.go +++ b/proxy/wireguard/config.go @@ -31,8 +31,13 @@ func (c *DeviceConfig) fallbackIP6() bool { } 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 { - errors.LogWarning(context.Background(), "Using gVisor TUN.") + errors.LogWarning(context.Background(), "Using gVisor TUN. NoKernelTun is set to true.") return createGVisorTun } kernelTunSupported, err := KernelTunSupported()