From 5328885d3418132e9a10ba0791b19dc87724f160 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 15 Nov 2023 12:30:11 +1000 Subject: [PATCH] Fix for overriding door32.sys telnet --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2f62cf3..cdc796e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -317,10 +317,11 @@ pub fn init() -> Result { if args.len() < 2 || 3 < args.len() { panic!("Usage: door.exe door32.sys [socket]"); } - let info = read_door32(&args[1]).expect("read door32.sys"); + let mut info = read_door32(&args[1]).expect("read door32.sys"); let fd = if args.len() == 3 { let fd = args[2].parse().expect("Socket is an integer"); if fd > 0 { + info.typ = ConnType::Telnet(fd); fd } else if let ConnType::Telnet(fd) = info.typ { fd