summaryrefslogtreecommitdiff
path: root/src/biruda.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/biruda.c')
-rw-r--r--src/biruda.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/biruda.c b/src/biruda.c
index 8479aa5..1a25a05 100644
--- a/src/biruda.c
+++ b/src/biruda.c
@@ -383,7 +383,16 @@ int main( int argc, char *argv[] )
port = cfg_getint( webserver_cfg, "port" );
}
}
- ret = start_interactive( ( in == stdin ) ? !args_info.no_colors_given : false, port, in );
+
+ const char *host = DEFAULT_WEBSERVER_HOST;
+ if( args_info.inputs_num >= 1 ) {
+ host = args_info.inputs[0];
+ }
+ if( args_info.inputs_num >= 2 ) {
+ port = atoi( args_info.inputs[1] );
+ }
+
+ ret = start_interactive( ( in == stdin ) ? !args_info.no_colors_given : false, host, port, in );
#else
if( args_info.filename_given ) {
ret = start_interactive( false, in );