Skip to content

Commit da80b12

Browse files
author
test
committed
Implement mTLS
1 parent 598cd86 commit da80b12

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ With its advanced real‑time update capabilities, DynaRust pushes live changes
5858
- **Easy Certificate Generation:**
5959
- Run `bash cert.sh`, provide a password, and a `.p12` certificate will be generated under the `cert/` directory.
6060
- **Testing Mode:**
61-
- Set `DYNA_MODE=http` to disable HTTPS (for testing only; **not recommended for production**).
61+
- Set `DYNA_MODE=https` to enable HTTPS
6262

6363
---
6464

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ async fn main() -> std::io::Result<()> {
187187

188188

189189
let use_https = match env::var("DYNA_MODE").unwrap_or_default().as_str() {
190-
"http" => false,
191-
_ => true
190+
"https" => true,
191+
_ => false
192192
};
193193
match use_https {
194194
true => {

0 commit comments

Comments
 (0)