From 954cfa86e591bdb316ad8c7d4f1cb1a157bd542e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Derosiaux?= Date: Wed, 9 Jan 2019 17:59:45 +0100 Subject: [PATCH] Fix websocket hostname usage The livereload url was using an unknown property "websocket-address" instead of "websocket-hostname", hence it was always fallback onto the hostname (which can be different). --- src/cmd/serve.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 0fd88c3a..9659d820 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -76,7 +76,7 @@ pub fn execute(args: &ArgMatches) -> Result<()> { let port = args.value_of("port").unwrap(); let ws_port = args.value_of("websocket-port").unwrap(); let hostname = args.value_of("hostname").unwrap(); - let public_address = args.value_of("websocket-address").unwrap_or(hostname); + let public_address = args.value_of("websocket-hostname").unwrap_or(hostname); let open_browser = args.is_present("open"); let address = format!("{}:{}", hostname, port);