From 8b6b4948300a562f49fee816cad3949f24c16a0c Mon Sep 17 00:00:00 2001 From: QC Date: Sun, 26 Jan 2014 16:21:08 +0100 Subject: [PATCH] Support _ in ssh hostname --- source/ssh-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ssh-dialog.c b/source/ssh-dialog.c index 4c6d754e..aaa07a85 100644 --- a/source/ssh-dialog.c +++ b/source/ssh-dialog.c @@ -176,7 +176,7 @@ static char ** get_ssh ( ) for ( start=4; isspace( buffer[start] ); start++ ); - for ( stop=start; isalnum( buffer[stop] ); stop++ ); + for ( stop=start; isalnum( buffer[stop] ) || buffer[stop] == '_' ; stop++ ); int found = 0;