Skip to content

Commit

Permalink
fix(env): 撤回 Surge 强制使用 https 执行脚本逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
chavyleung committed Oct 11, 2024
1 parent 577caee commit a75ca2f
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Env.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function Env(name, opts) {
runOpts && runOpts.timeout ? runOpts.timeout : httpapi_timeout
const [key, addr] = httpapi.split('@')
const opts = {
url: `https://${addr}/v1/scripting/evaluate`,
url: `http://${addr}/v1/scripting/evaluate`,
body: {
script_text: script,
mock_type: 'cron',
Expand Down
2 changes: 1 addition & 1 deletion Env.min.js

Large diffs are not rendered by default.

28 changes: 16 additions & 12 deletions box/chavy.boxjs.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions box/release/box.release.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"releases": [
{
"version": "0.19.17",
"tags": ["beta"],
"author": "@chavyleung",
"msg": "fix(env): 撤回 Surge 强制使用 https 执行脚本逻辑",
"notes": [
{
"name": "撤回",
"descs": [
"撤回 Surge 强制使用 https 执行脚本逻辑",
"后续增加配置方式来支持 https"
]
}
]
},
{
"version": "0.19.16",
"tags": ["beta"],
Expand Down
15 changes: 15 additions & 0 deletions box/release/box.release.tf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"releases": [
{
"version": "0.19.17",
"tags": ["beta"],
"author": "@chavyleung",
"msg": "fix(env): 撤回 Surge 强制使用 https 执行脚本逻辑",
"notes": [
{
"name": "撤回",
"descs": [
"撤回 Surge 强制使用 https 执行脚本逻辑",
"后续增加配置方式来支持 https"
]
}
]
},
{
"version": "0.19.16",
"tags": ["beta"],
Expand Down
28 changes: 16 additions & 12 deletions chavy.box.js

Large diffs are not rendered by default.

0 comments on commit a75ca2f

Please sign in to comment.