From 18543833a1b90dbe928b2477aab04fc0f2d7bfbd Mon Sep 17 00:00:00 2001 From: Lars The Date: Thu, 7 Jan 2021 16:13:07 +0100 Subject: [PATCH] fix ipv4 port forwards window When using IPv4 (or IPv6) only forwards the window doesn't print the status. This patch fixes it. --- kitty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kitty.c b/kitty.c index 4d6f889..ab0b298 100644 --- a/kitty.c +++ b/kitty.c @@ -3485,9 +3485,9 @@ int ShowPortfwd( HWND hwnd, Conf * conf ) { val = conf_get_str_strs(conf, CONF_portfwd, key, &key)) { char *p; - if( key[0]=='R' ) { + if (( key[0]=='R' ) || ( key[1]=='R' )) { p = dupprintf("[-] %s \t\t<-- \t%s\n", key+1,val); - } else if ( key[0]=='L' ) { + } else if (( key[0]=='L' ) || ( key[1]=='L' )) { if( pGetExtendedTcpTable && (dwResult == NO_ERROR) ) { int found=0 ; if( pTCPInfo->dwNumEntries > 0 ) { @@ -3507,7 +3507,7 @@ int ShowPortfwd( HWND hwnd, Conf * conf ) { } else { p = dupprintf("[-] %s \t\t--> \t%s\n", key+1,val); } - } else if ( key[0]=='D' ) { + } else if (( key[0]=='D' ) || ( key[1]=='D' )) { p = dupprintf("D%s\t\n", key+1) ; } else { p = dupprintf("%s\t%s\n", key, val) ;