Skip to content

Commit b7aacd3

Browse files
FanglidingRPRX
andcommitted
Wireguard inbound: Do not use kernel TUN (#3960)
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
1 parent 4ec5c78 commit b7aacd3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

proxy/wireguard/config.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ func (c *DeviceConfig) fallbackIP6() bool {
3131
}
3232

3333
func (c *DeviceConfig) createTun() tunCreator {
34+
if !c.IsClient {
35+
// See tun_linux.go createKernelTun()
36+
errors.LogWarning(context.Background(), "Using gVisor TUN. WG inbound doesn't support kernel TUN yet.")
37+
return createGVisorTun
38+
}
3439
if c.NoKernelTun {
35-
errors.LogWarning(context.Background(), "Using gVisor TUN.")
40+
errors.LogWarning(context.Background(), "Using gVisor TUN. NoKernelTun is set to true.")
3641
return createGVisorTun
3742
}
3843
kernelTunSupported, err := KernelTunSupported()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy