From f39a34a9eb574ee4d695b84b067f9a70a3c91f36 Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Tue, 29 Aug 2023 20:07:08 +0200 Subject: [PATCH] "Update":\ --- README.md | 2 ++ src/main.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6de435e..20d0f23 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # lwa_simple_server +[![build](https://github.com/Leinnan/lwa_simple_server/actions/workflows/rust.yml/badge.svg)](https://github.com/Leinnan/lwa_simple_server/actions/workflows/rust.yml) + Simple server made with hosting locally webgl games in mind. It makes testing Unity webgl games easy, even allows connecting with different domains(less CORS issues during tests). diff --git a/src/main.rs b/src/main.rs index 758ad48..33f6c5d 100755 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,8 @@ async fn main() -> std::io::Result<()> { // `openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -out cert.pem -days 365 -subj '/CN=localhost'` println!( - "Starting server on address: {} with hosted folder: {} wit SSL: {}", + "Starting server on address: {}://{} with hosted folder: {} [SSL={}]", + if app_args.ssl{ "https" } else {"http"}, app_args.get_address(), path, app_args.ssl