summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-11-20 15:25:07 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2021-11-20 15:25:07 +0100
commit7763db3ce562553c5f52ba4d60459cc7a5d4964d (patch)
tree54b791bba4dcba67642f0951f98134da03cf8c1a
parentca984c351eca4dcb021dac0e6683d10ebf705e58 (diff)
downloadcssh-7763db3ce562553c5f52ba4d60459cc7a5d4964d.tar.gz
cssh-7763db3ce562553c5f52ba4d60459cc7a5d4964d.tar.bz2
replaced hard-coded 22 with get_default_ssh_port
-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 );