-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add quench technology #717
base: main
Are you sure you want to change the base?
Conversation
18934a1
to
8b974f6
Compare
8b974f6
to
78484a4
Compare
3af851c
to
7ddb9a1
Compare
16f0876
to
62e0711
Compare
62e0711
to
b760ba7
Compare
146d63e
to
844571d
Compare
daemon/rpc_is_quench_enabled.go
Outdated
"github.com/NordSecurity/nordvpn-linux/features" | ||
) | ||
|
||
func (r *RPC) isNordWhisperEnabled() bool { |
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.
Is there a need for 2 fns here? I dont see why...
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.
The inner function is also used in jobs.go
and rpc_settings.go
, just to check if quench is enabled. Outer function also wraps the result in an RPC response.
if q.tun != nil { | ||
return q.tun | ||
} | ||
return nil |
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.
[small] can be just return q.tun
?
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 think this is the same case as https://go.dev/doc/faq#nil_error.
No description provided.