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

Starting cover traffic stream under correct condition #422

Merged
merged 1 commit into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions clients/native/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@ impl NymClient {
}

pub fn start(&mut self) {
let vpn_mode = true;

info!("Starting nym client");
// channels for inter-component communication
// TODO: make the channels be internally created by the relevant components
Expand Down Expand Up @@ -391,7 +389,7 @@ impl NymClient {
sphinx_message_sender.clone(),
);

if vpn_mode {
if !self.config.get_base().get_vpn_mode() {
self.start_cover_traffic_stream(shared_topology_accessor, sphinx_message_sender);
}

Expand Down
4 changes: 3 additions & 1 deletion clients/socks5/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ impl NymClient {
input_receiver,
sphinx_message_sender.clone(),
);
self.start_cover_traffic_stream(shared_topology_accessor, sphinx_message_sender);
if !self.config.get_base().get_vpn_mode() {
self.start_cover_traffic_stream(shared_topology_accessor, sphinx_message_sender);
}
self.start_socks5_listener(received_buffer_request_sender, input_sender);

info!("Client startup finished!");
Expand Down