From d46ed6f5870db361f352f32e9e581e94108026ad Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 1 Mar 2026 22:43:26 -0500 Subject: [PATCH] fix proxy secure logic --- src/kiri/app/export.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kiri/app/export.js b/src/kiri/app/export.js index 9cfabdec..96e5e18e 100644 --- a/src/kiri/app/export.js +++ b/src/kiri/app/export.js @@ -248,14 +248,14 @@ function exportGCodeDialog(gcode, sections, info, names) { host = octo_host.value.toLowerCase(), apik = octo_apik.value, type = octo_type.value, - secure = api.const.SECURE, + secure = api.util.isSecure(host), proxy = !secure && api.feature.proxy ? host : undefined; if (host.indexOf("http") !== 0) { api.show.alert("host missing protocol (http:// or https://)"); return; } - if (secure && !api.util.isSecure(host) && !proxy) { + if (api.const.SECURE && !secure && !proxy) { api.show.alert("host must begin with 'https' on a secure site"); return; }