From 94536ed3fe611bbeabcdb13533229b6f18e33781 Mon Sep 17 00:00:00 2001 From: ersonp Date: Mon, 20 Jun 2022 20:49:18 +0530 Subject: [PATCH] Fix single vpn-server conn issue This commit fixes the issue where only one client was able to connect to the server. The cause of it was the PlatformSpecificParams in water.Config that only created one tunnel utun4. We fix it by removing it. --- internal/vpn/tun_device_unix.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/vpn/tun_device_unix.go b/internal/vpn/tun_device_unix.go index 423f50a136..ea77020b53 100644 --- a/internal/vpn/tun_device_unix.go +++ b/internal/vpn/tun_device_unix.go @@ -12,9 +12,6 @@ import ( func newTUNDevice() (TUNDevice, error) { tun, err := water.New(water.Config{ DeviceType: water.TUN, - PlatformSpecificParams: water.PlatformSpecificParams{ - Name: "utun4", - }, }) if err != nil { return nil, fmt.Errorf("error allocating TUN interface: %w", err)