-
-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[client] Add NB_SKIP_SOCKET_MARK & fix crash instead of returing an error #2899
Conversation
I am not sure what is it with failing tests, doesn't seem like failures are related to my changes. |
util/net/net_linux.go
Outdated
} | ||
|
||
// Check for the new environment variable | ||
if skipSocketMark := os.Getenv(envSkipSocketMark); skipSocketMark == "true" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we add the env check here as well
return os.Getenv("NB_USE_LEGACY_ROUTING") == "true" || nbnet.CustomRoutingDisabled() |
This way we will fallback to exclusion routes automatically (instead of using fwmarks), to avoid routing loops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean NB_SKIP_SOCKET_MARK=true
should automatically imply NB_USE_LEGACY_ROUTING=true
?
1478e01
to
c9f9533
Compare
c9f9533
to
bfa4772
Compare
Can you merge main? There's been an issue with a domain for the tests |
9c41d2a
to
634596a
Compare
found during investigation of netbirdio#2530
fix created during investigation of netbirdio#2530
634596a
to
4ed0d72
Compare
Quality Gate passedIssues Measures |
Thanks a lot |
Describe your changes
I found some changes laying around on my computer when asked about #2530 (debugging my mobile router), can as well upstream those:
SO_MARK
without disabling other custom routing featureslog.Fatalf
Issue ticket number and link
#2530
Checklist