summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cssh.c b/src/cssh.c
index d3a97ec..4b6198b 100644
--- a/src/cssh.c
+++ b/src/cssh.c
@@ -558,7 +558,7 @@ static ssize_t output_buffer( FILE *f, const char *host, const unsigned int port
const char *p;
while( ( b < buffer + bufsize ) && ( p = buffer_contains_a_line( b, bsize ) ) != NULL) {
if( tagging ) {
- if( port != 22 ) {
+ if( port != get_default_ssh_port( ) ) {
fprintf( f, "[%s:%d]: ", host, port );
} else {
fprintf( f, "[%s]: ", host );