Add comments, fix binding of topd
[remotetop.git] / topd.c
diff --git a/topd.c b/topd.c
index f532a7d..5dedced 100644 (file)
--- a/topd.c
+++ b/topd.c
@@ -120,7 +120,7 @@ main( int argc, char *argv[] ) {
                        cfg.mu = allocUnits(n);
 
                        TC_addConnection( &cfg.pool, TC_fillConnection(NULL, NULL, listenport) );
-                       TC_ClientInitConnection( cfg.pool.conn[0], NULL, listenport);
+                       TC_ClientInitConnection( cfg.pool.conn[0], host, listenport);
                        cfg.pool.conn[0]->state = CS_READ;
 
                        TC_addConnection( &cfg.pool, TC_fillConnection(NULL, NULL, listenport) );