feat: Surge External Proxy Program 支持 udp-relay

This commit is contained in:
xream committed 2026-01-18 21:48:03 +08:00
1 parent 850c4635ce
commit d05288536c
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -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": {
@@ -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: [