diff options
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -255,13 +255,13 @@ static void stop_worker( const char *worker_name ) } } -int start_interactive( bool colors, FILE *in ) +int start_interactive( bool colors, unsigned short port, FILE *in ) { char history_filename[1024]; // for http_tidy, tell it where to issue requests to - http_server = "localhost"; - http_port = 8080; + http_server = "localhost"; // server is hard-coded + http_port = port; // port not is_interactive = isatty( fileno( in ) ); print_colors = is_interactive ? colors : false; |