about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index f683c38..34c25c0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -127,6 +127,15 @@ async fn main() {
             }
         }
 
+        // This only works on debug builds. Don't get any funny thoughts.
+        #[cfg(debug_assertions)]
+        if std::env::var("KITTYBOX_DANGER_INSECURE_TLS")
+            .map(|y| y == "1")
+            .unwrap_or(false)
+        {
+            builder = builder.danger_accept_invalid_certs(true);
+        }
+
         builder.build().unwrap()
     };