Skip to content

Commit

Permalink
Merge pull request #865 from sderosiaux/patch-1
Browse files Browse the repository at this point in the history
Fix websocket hostname usage
  • Loading branch information
steveklabnik authored Jan 17, 2019
2 parents 9e96165 + 954cfa8 commit acbb951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit acbb951

Please sign in to comment.