[client] Scope the iOS file drop dial to the tunnel interface

A Network Extension's own unscoped sockets bypass its tunnel and leave on
the physical interface, so the file drop dial to a peer address died on
the local network. Bind the socket to the overlay address and the tunnel
interface index, the same way the iOS DNS upstream client dials. Other
platforms keep the plain dialer: Android and the desktops route the
client's own traffic into the tunnel already.
This commit is contained in:
Zoltán Papp
2026-08-27 16:10:25 +02:00
parent 951e5d3e28
commit 898539381c
2 changed files with 71 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
//go:build !ios
package internal
import (
"net"
"github.com/netbirdio/netbird/client/internal/filedrop"
)
func fileDropOSDial(WGIface) filedrop.DialFunc {
dialer := &net.Dialer{}
return dialer.DialContext
}