Skip to content

Commit

Permalink
Fix single vpn-server conn issue
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ersonp committed Jun 20, 2022
1 parent 8245582 commit 94536ed
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/vpn/tun_device_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94536ed

Please sign in to comment.