Browse Source

Optimize: udp option

master
CareyWong 4 years ago
parent
commit
26d278800c
  1. 12
      src/views/Subconverter.vue

12
src/views/Subconverter.vue

@ -86,7 +86,7 @@
<el-checkbox v-model="form.new_name" label="Clash New Field"></el-checkbox> <el-checkbox v-model="form.new_name" label="Clash New Field"></el-checkbox>
</el-row> </el-row>
<el-row> <el-row>
<el-checkbox v-model="form.udp" label="启用 UDP"></el-checkbox> <el-checkbox v-model="form.udp" @change="needUdp = true" label="启用 UDP"></el-checkbox>
</el-row> </el-row>
<el-row> <el-row>
<el-checkbox v-model="form.appendType" label="节点类型"></el-checkbox> <el-checkbox v-model="form.appendType" label="节点类型"></el-checkbox>
@ -378,7 +378,9 @@ export default {
uploadConfig: "", uploadConfig: "",
uploadPassword: "", uploadPassword: "",
myBot: tgBotLink, myBot: tgBotLink,
sampleConfig: remoteConfigSample sampleConfig: remoteConfigSample,
needUdp: false, // udp
}; };
}, },
created() { created() {
@ -483,8 +485,6 @@ export default {
this.form.emoji.toString() + this.form.emoji.toString() +
"&list=" + "&list=" +
this.form.nodeList.toString() + this.form.nodeList.toString() +
"&udp=" +
this.form.udp.toString() +
"&tfo=" + "&tfo=" +
this.form.tfo.toString() + this.form.tfo.toString() +
"&scv=" + "&scv=" +
@ -494,6 +494,10 @@ export default {
"&sort=" + "&sort=" +
this.form.sort.toString(); this.form.sort.toString();
if (this.needUdp) {
this.customSubUrl += "&udp=" + this.form.udp.toString()
}
if (this.form.tpl.surge.doh === true) { if (this.form.tpl.surge.doh === true) {
this.customSubUrl += "&surge.doh=true"; this.customSubUrl += "&surge.doh=true";
} }

Loading…
Cancel
Save