diff --git a/src/kiri/app/export.js b/src/kiri/app/export.js index 2d79237f..9cfabdec 100644 --- a/src/kiri/app/export.js +++ b/src/kiri/app/export.js @@ -248,13 +248,14 @@ function exportGCodeDialog(gcode, sections, info, names) { host = octo_host.value.toLowerCase(), apik = octo_apik.value, type = octo_type.value, - proxy = api.feature.proxy ? host : undefined; + secure = api.const.SECURE, + proxy = !secure && api.feature.proxy ? host : undefined; if (host.indexOf("http") !== 0) { api.show.alert("host missing protocol (http:// or https://)"); return; } - if (api.const.SECURE && !api.util.isSecure(host) && !api.feature.proxy) { + if (secure && !api.util.isSecure(host) && !proxy) { api.show.alert("host must begin with 'https' on a secure site"); return; }