diff --git a/src/views/Subconverter.vue b/src/views/Subconverter.vue
index e8e8063..701006f 100644
--- a/src/views/Subconverter.vue
+++ b/src/views/Subconverter.vue
@@ -86,7 +86,7 @@
-
+
@@ -378,7 +378,9 @@ export default {
uploadConfig: "",
uploadPassword: "",
myBot: tgBotLink,
- sampleConfig: remoteConfigSample
+ sampleConfig: remoteConfigSample,
+
+ needUdp: false, // 是否需要添加 udp 参数
};
},
created() {
@@ -483,8 +485,6 @@ export default {
this.form.emoji.toString() +
"&list=" +
this.form.nodeList.toString() +
- "&udp=" +
- this.form.udp.toString() +
"&tfo=" +
this.form.tfo.toString() +
"&scv=" +
@@ -494,6 +494,10 @@ export default {
"&sort=" +
this.form.sort.toString();
+ if (this.needUdp) {
+ this.customSubUrl += "&udp=" + this.form.udp.toString()
+ }
+
if (this.form.tpl.surge.doh === true) {
this.customSubUrl += "&surge.doh=true";
}