mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-12 17:59:06 +02:00
The receiver's host listener is a socket of the Network Extension, so the SYN-ACK of an accepted connection followed the extension's own-traffic bypass onto the physical interface and the sender never got an answer. Bind the listeners to the tunnel interface index the same way the dial already is; accepted sockets inherit the scope. Other platforms pass a nil control and keep the current behavior.
19 lines
291 B
Go
19 lines
291 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
|
|
}
|
|
|
|
func fileDropListenControl(WGIface) filedrop.ListenControl {
|
|
return nil
|
|
}
|