From 3589602c7c7dec89a7290fdfec4b41ed59f0ec66 Mon Sep 17 00:00:00 2001 From: Harry Cordewener Date: Tue, 30 Jan 2024 13:53:32 -0600 Subject: [PATCH] Favor EOR over GA. --- TelnetNegotiationCore/Interpreters/TelnetEORInterpreter.cs | 5 ++--- TelnetNegotiationCore/Models/MSDPConfig.cs | 6 ------ 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 TelnetNegotiationCore/Models/MSDPConfig.cs diff --git a/TelnetNegotiationCore/Interpreters/TelnetEORInterpreter.cs b/TelnetNegotiationCore/Interpreters/TelnetEORInterpreter.cs index 7698d44..5203d73 100644 --- a/TelnetNegotiationCore/Interpreters/TelnetEORInterpreter.cs +++ b/TelnetNegotiationCore/Interpreters/TelnetEORInterpreter.cs @@ -126,12 +126,11 @@ public async Task SendPromptAsync(byte[] send) { await CallbackNegotiationAsync(CurrentEncoding.GetBytes(Environment.NewLine)); } - else + else if(_doEOR is true) { await CallbackNegotiationAsync([(byte)Trigger.IAC, (byte)Trigger.EOR]); } - // TODO: Tie into _doGA - if(_doEOR is not null or false) + else if (_doGA is not null or false) { await CallbackNegotiationAsync([(byte)Trigger.IAC, (byte)Trigger.GA]); } diff --git a/TelnetNegotiationCore/Models/MSDPConfig.cs b/TelnetNegotiationCore/Models/MSDPConfig.cs deleted file mode 100644 index 4618f19..0000000 --- a/TelnetNegotiationCore/Models/MSDPConfig.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace TelnetNegotiationCore.Models -{ - public class MSDPConfig - { - } -} \ No newline at end of file