From 9db075c591b6f4907e50531f9608f11b41f93cdd Mon Sep 17 00:00:00 2001 From: iyoshok Date: Tue, 6 Jul 2021 18:59:42 +0200 Subject: [PATCH] fixed the response string for the udp port, client should now accept the given port --- src/connection.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/connection.rs b/src/connection.rs index d07dc08..f2845df 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -148,10 +148,9 @@ impl Connection { //TODO: Determine what needs to happen here } //this command is where we tell the client what port to use - //WARNING: This command does not work properly. - //For some reason the client does not like the port we are sending and defaults to 65535 this is fine for now but will be fixed in the future + //TODO: make configurable? Some(FtlCommand::Dot) => { - let resp_string = "200 hi. Use UDP port 65535\n".to_string(); + let resp_string = "200. Use UDP port 65535\n".to_string(); let mut resp = Vec::new(); resp.push(resp_string); //tell the frame task to send our response