Skip to content

Commit 9f43b9f

Browse files
committed
Doesn't release port when application is shutdown - fixes #14
1 parent 114e816 commit 9f43b9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ fn run_with_opts(opts: ProgramOptions) -> Result<(), ProgramStartError> {
9292
ProxyScheme::Https => s.bind_ssl(&local_addr, get_ssl_builder()),
9393
};
9494

95-
s.expect("Couldn't start the application").start();
95+
s.expect("Couldn't start the application")
96+
.shutdown_timeout(0)
97+
.start();
9698

9799
println!("Started server: {}://{}", server_opts.scheme, local_addr);
98100

0 commit comments

Comments
 (0)