From 2da346ea3bcbb82919a11d9b0eecf8a6f0977a8a Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 15 Dec 2025 18:35:49 +0800 Subject: [PATCH] fix: sing-box insecure is not supported on naive outbound --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/sing-box.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 862d92ef..9dc4f46b 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.20.52", + "version": "2.20.53", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/sing-box.js b/backend/src/core/proxy-utils/producers/sing-box.js index 455c6bfa..fb6345bd 100644 --- a/backend/src/core/proxy-utils/producers/sing-box.js +++ b/backend/src/core/proxy-utils/producers/sing-box.js @@ -670,6 +670,13 @@ const naiveParser = (proxy = {}) => { tlsParser(proxy, parsedProxy); smuxParser(proxy.smux, parsedProxy); ipVersionParser(proxy, parsedProxy); + if (parsedProxy.tls?.insecure) { + $.info( + `Platform sing-box: insecure is not supported on naive outbound`, + ); + delete parsedProxy.tls.insecure; + } + return parsedProxy; }; const hysteriaParser = (proxy = {}) => {