mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 09:47:49 +02:00
Do not use SO_MARK in case of netstack mode. (#2104)
This commit is contained in:
parent
deffe037aa
commit
10d8617be6
@ -1,6 +1,7 @@
|
|||||||
package net
|
package net
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/netbirdio/netbird/iface/netstack"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
@ -23,5 +24,8 @@ func GenerateConnID() ConnectionID {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CustomRoutingDisabled() bool {
|
func CustomRoutingDisabled() bool {
|
||||||
|
if netstack.IsEnabled() {
|
||||||
|
return true
|
||||||
|
}
|
||||||
return os.Getenv(envDisableCustomRouting) == "true"
|
return os.Getenv(envDisableCustomRouting) == "true"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user