Skip to content

Commit f5b3952

Browse files
daxpeddajakobhellermann
authored andcommitted
Be Rustls-friendly
1 parent 3eb7f50 commit f5b3952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub async fn run_server(options: Options, output: WasmBindgenOutput) -> Result<(
6262
let addr: SocketAddr = address_string.parse().expect("Couldn't parse address");
6363

6464
if std::env::var("WASM_SERVER_RUNNER_HTTPS").unwrap_or_else(|_| String::from("0")) == "1" {
65-
let certificate = rcgen::generate_simple_self_signed([])?;
65+
let certificate = rcgen::generate_simple_self_signed([String::from("localhost")])?;
6666
let config = RustlsConfig::from_der(
6767
vec![certificate.serialize_der()?],
6868
certificate.serialize_private_key_der(),

0 commit comments

Comments
 (0)