mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-12 17:59:06 +02:00
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.
15 lines
215 B
Go
15 lines
215 B
Go
//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
|
|
}
|