1
0
mirror of https://github.com/netbirdio/netbird.git synced 2025-06-08 19:07:42 +02:00
netbird/util/net/dialer_linux.go
Maycon Santos 3875c29f6b
Revert "Rollback new routing functionality ()" ()
This reverts commit 9f32ccd4533d5301bcb901677af9816cb3408f92.
2024-04-08 18:56:52 +02:00

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)
}
}