mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 19:33:32 +02:00
WireGuard createTun: Add more logs
This commit is contained in:
parent
cf182b0482
commit
ceb6eac8e7
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue