mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-30 03:54:35 +01:00
3875c29f6b
This reverts commit 9f32ccd453
.
13 lines
260 B
Go
13 lines
260 B
Go
//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)
|
|
}
|
|
}
|