Skip to content
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

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Add quench technology #717

wants to merge 30 commits into from

Conversation

bartoszWojciechO
Copy link
Contributor

No description provided.

cmd/daemon/main.go Outdated Show resolved Hide resolved
daemon/rpc_connect.go Outdated Show resolved Hide resolved
daemon/rpc_connect.go Outdated Show resolved Hide resolved
tunnel/tunnel.go Outdated Show resolved Hide resolved
config/remote/firebase.go Outdated Show resolved Hide resolved
config/remote/firebase.go Outdated Show resolved Hide resolved
ci/generate_protobuf.sh Outdated Show resolved Hide resolved
daemon/rpc_set_technology.go Outdated Show resolved Hide resolved
cmd/daemon/no_firebase_cfg.go Show resolved Hide resolved
cmd/daemon/vpn_factory.go Outdated Show resolved Hide resolved
cli/cli_set_technology.go Outdated Show resolved Hide resolved
core/models_test.go Show resolved Hide resolved
daemon/rpc_connect.go Outdated Show resolved Hide resolved
daemon/rpc_connect.go Outdated Show resolved Hide resolved
features/no_quench.go Outdated Show resolved Hide resolved
daemon/jobs.go Outdated Show resolved Hide resolved
daemon/vpn/quench/libquench.go Outdated Show resolved Hide resolved
daemon/vpn/quench/libquench.go Outdated Show resolved Hide resolved
daemon/vpn/quench/libquench.go Outdated Show resolved Hide resolved
daemon/vpn/quench/libquench.go Show resolved Hide resolved
daemon/vpn/quench/libquench.go Show resolved Hide resolved
daemon/vpn/quench/libquench.go Outdated Show resolved Hide resolved
"github.com/NordSecurity/nordvpn-linux/features"
)

func (r *RPC) isNordWhisperEnabled() bool {
Copy link
Contributor

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...

Copy link
Contributor Author

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.

daemon/rpc_is_quench_enabled.go Outdated Show resolved Hide resolved
Comment on lines +280 to +283
if q.tun != nil {
return q.tun
}
return nil
Copy link
Contributor

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?

Copy link
Contributor Author

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.

daemon/vpn/quench/libquench.go Outdated Show resolved Hide resolved
daemon/vpn/quench/libquench.go Outdated Show resolved Hide resolved
config/remote/remote_config.go Outdated Show resolved Hide resolved
config/remote/firebase.go Outdated Show resolved Hide resolved
cmd/daemon/vpn_telio.go Outdated Show resolved Hide resolved
cmd/daemon/vpn_no_quench.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants