aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw-agent/agent.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-05-02 18:45:50 -0400
committerJesse Luehrs <doy@tozt.net>2020-05-02 18:59:11 -0400
commitf035ac5470c7fbcf791e361cb2d611de7edafb0f (patch)
tree8d75832af542bb27ca32163fbadc67758dde50cb /src/bin/rbw-agent/agent.rs
parentbcf1df8dd65fb24c767ca91159fc5639dbd5375f (diff)
downloadrbw-f035ac5470c7fbcf791e361cb2d611de7edafb0f.tar.gz
rbw-f035ac5470c7fbcf791e361cb2d611de7edafb0f.zip
check protocol version before agent communication
Diffstat (limited to 'src/bin/rbw-agent/agent.rs')
-rw-r--r--src/bin/rbw-agent/agent.rs4
1 files changed, 4 insertions, 0 deletions
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 {