mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-09 07:15:15 +02:00
This reverts commit 9f32ccd453
.
This commit is contained in:
12
util/net/dialer_linux.go
Normal file
12
util/net/dialer_linux.go
Normal file
@ -0,0 +1,12 @@
|
||||
//go:build !android
|
||||
|
||||
package net
|
||||
|
||||
import "syscall"
|
||||
|
||||
// init configures the net.Dialer Control function to set the fwmark on the socket
|
||||
func (d *Dialer) init() {
|
||||
d.Dialer.Control = func(_, _ string, c syscall.RawConn) error {
|
||||
return SetRawSocketMark(c)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user