From d05288536c831a00acc14bbd4041cd29e240f2bf Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 18 Jan 2026 21:48:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Surge=20External=20Proxy=20Program=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20`udp-relay`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/surgemac.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index afd948bd..fe51bd5b 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.21.6", + "version": "2.21.7", "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/surgemac.js b/backend/src/core/proxy-utils/producers/surgemac.js index ba3dc206..1c8a013a 100644 --- a/backend/src/core/proxy-utils/producers/surgemac.js +++ b/backend/src/core/proxy-utils/producers/surgemac.js @@ -61,6 +61,9 @@ function external(proxy) { 'no-error-alert', ); + // udp + result.appendIfPresent(`,udp-relay=${proxy.udp}`, 'udp'); + // tfo if (isPresent(proxy, 'tfo')) { result.append(`,tfo=${proxy['tfo']}`); @@ -129,6 +132,7 @@ function mihomo(proxy, type, opts) { const external_proxy = { name: proxy.name, type: 'external', + udp: true, exec: proxy._exec || '/usr/local/bin/mihomo', 'local-port': localPort, args: [