From f035ac5470c7fbcf791e361cb2d611de7edafb0f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 2 May 2020 18:45:50 -0400 Subject: check protocol version before agent communication --- src/bin/rbw-agent/agent.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bin/rbw-agent/agent.rs') diff --git a/src/bin/rbw-agent/agent.rs b/src/bin/rbw-agent/agent.rs index 9021569..72d6077 100644 --- a/src/bin/rbw-agent/agent.rs +++ b/src/bin/rbw-agent/agent.rs @@ -156,6 +156,10 @@ async fn handle_request( true } rbw::protocol::Action::Quit => std::process::exit(0), + rbw::protocol::Action::Version => { + crate::actions::version(sock).await?; + true + } }; if set_timeout { -- cgit v1.2.3-54-g00ecf