From ddefe10ba133c8397ddf46c15e2614c1748ddf99 Mon Sep 17 00:00:00 2001 From: Christine Lemmer-Webber Date: Wed, 1 Jun 2022 19:27:52 -0400 Subject: ui: serve: Allow for setting the host explicitly. Also update docs accordingly. --- doc/haunt.texi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/haunt.texi b/doc/haunt.texi index 0593681..2dd9b8f 100644 --- a/doc/haunt.texi +++ b/doc/haunt.texi @@ -348,7 +348,16 @@ Load the Haunt site declaration from @var{configuration-file}. @item --port=@var{port} @itemx -p @var{port} -Listen for HTTP requests on @var{port}. +Listen for HTTP requests on @var{port}. Defaults to 8080. + +@item --host=@var{host} +@itemx -p @var{host} + +Listen for HTTP requests on @var{host}. Accepts an IP address (IPv4 +or IPv6), @code{localhost} or @code{loopback} to serve on the local +loopback device (the default), or @code{any} to bind on all local +available ports (useful if you want to show off your website to +someone else on your LAN, or something.) @item --watch @itemx -w -- cgit v1.2.3