From ceb6eac8e70e6ae53277e66254c68c2d91d2a4c9 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Wed, 30 Oct 2024 02:20:55 +0000 Subject: [PATCH] WireGuard createTun: Add more logs --- proxy/wireguard/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy/wireguard/config.go b/proxy/wireguard/config.go index 8995f35e..e8a6630f 100644 --- a/proxy/wireguard/config.go +++ b/proxy/wireguard/config.go @@ -32,6 +32,7 @@ func (c *DeviceConfig) fallbackIP6() bool { func (c *DeviceConfig) createTun() tunCreator { if c.NoKernelTun { + errors.LogWarning(context.Background(), "Using gVisor TUN.") return createGVisorTun } kernelTunSupported, err := KernelTunSupported() @@ -40,8 +41,9 @@ func (c *DeviceConfig) createTun() tunCreator { return createGVisorTun } if !kernelTunSupported { - errors.LogWarning(context.Background(), "Using gVisor TUN. Kernel TUN is not supported on your OS, or your permission is insufficient.)") + errors.LogWarning(context.Background(), "Using gVisor TUN. Kernel TUN is not supported on your OS, or your permission is insufficient.") return createGVisorTun } + errors.LogWarning(context.Background(), "Using kernel TUN.") return createKernelTun }