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).
This commit is contained in:
parent
1052ee92e1
commit
954cfa86e5
|
@ -76,7 +76,7 @@ pub fn execute(args: &ArgMatches) -> Result<()> {
|
||||||
let port = args.value_of("port").unwrap();
|
let port = args.value_of("port").unwrap();
|
||||||
let ws_port = args.value_of("websocket-port").unwrap();
|
let ws_port = args.value_of("websocket-port").unwrap();
|
||||||
let hostname = args.value_of("hostname").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 open_browser = args.is_present("open");
|
||||||
|
|
||||||
let address = format!("{}:{}", hostname, port);
|
let address = format!("{}:{}", hostname, port);
|
||||||
|
|
Loading…
Reference in New Issue