Browse Source

WireGuard createTun: Add more logs

pull/3955/head
RPRX 3 weeks ago committed by GitHub
parent
commit
ceb6eac8e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      proxy/wireguard/config.go

4
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
}

Loading…
Cancel
Save