We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb7f50 commit f5b3952Copy full SHA for f5b3952
src/server.rs
@@ -62,7 +62,7 @@ pub async fn run_server(options: Options, output: WasmBindgenOutput) -> Result<(
62
let addr: SocketAddr = address_string.parse().expect("Couldn't parse address");
63
64
if std::env::var("WASM_SERVER_RUNNER_HTTPS").unwrap_or_else(|_| String::from("0")) == "1" {
65
- let certificate = rcgen::generate_simple_self_signed([])?;
+ let certificate = rcgen::generate_simple_self_signed([String::from("localhost")])?;
66
let config = RustlsConfig::from_der(
67
vec![certificate.serialize_der()?],
68
certificate.serialize_private_key_der(),
0 commit comments