summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-06 14:14:29 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-06 14:14:29 +0200
commit63ee1afca501224efd492604c4304551b89f3772 (patch)
treee8290a6f7c40da8cbdac0d80af184aa1ef634603 /src/cli.c
parent07a57fba5e74f9a6f5749f6feeafa0c07d75c5da (diff)
downloadbiruda-63ee1afca501224efd492604c4304551b89f3772.tar.gz
biruda-63ee1afca501224efd492604c4304551b89f3772.tar.bz2
cli mode reads port from config if config is given, otherwise
defaults to DEFAULT_HTTP_PORT
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli.c b/src/cli.c
index 0596b24..f882c3b 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -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;