outbound.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. {{define "form/outbound"}}
  2. <!-- base -->
  3. <a-tabs :active-key="outModal.activeKey" style="padding: 0; background-color: transparent;" @change="(activeKey) => {outModal.toggleJson(activeKey == '2'); }">
  4. <a-tab-pane key="1" tab="Form">
  5. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  6. <a-form-item label='{{ i18n "protocol" }}'>
  7. <a-select v-model="outbound.protocol" :dropdown-class-name="themeSwitcher.currentTheme">
  8. <a-select-option v-for="x,y in Protocols" :value="x">[[ y ]]</a-select-option>
  9. </a-select>
  10. </a-form-item>
  11. <a-form-item label='{{ i18n "pages.xray.outbound.tag" }}' has-feedback :validate-status="outModal.duplicateTag? 'warning' : 'success'">
  12. <a-input v-model.trim="outbound.tag" @change="outModal.check()" placeholder='{{ i18n "pages.xray.outbound.tagDesc" }}'></a-input>
  13. </a-form-item>
  14. <a-form-item label='{{ i18n "pages.xray.outbound.sendThrough" }}'>
  15. <a-input v-model="outbound.sendThrough"></a-input>
  16. </a-form-item>
  17. <!-- freedom settings-->
  18. <template v-if="outbound.protocol === Protocols.Freedom">
  19. <a-form-item label='Strategy'>
  20. <a-select v-model="outbound.settings.domainStrategy" :dropdown-class-name="themeSwitcher.currentTheme">
  21. <a-select-option v-for="s in OutboundDomainStrategies" :value="s">[[ s ]]</a-select-option>
  22. </a-select>
  23. </a-form-item>
  24. <a-form-item label='Timeout'>
  25. <a-input-number v-model.number="outbound.settings.timeout" min="0" ></a-input-number>
  26. </a-form-item>
  27. <a-form-item label='Redirect'>
  28. <a-input v-model="outbound.settings.redirect"></a-input>
  29. </a-form-item>
  30. <a-form-item label='Fragment'>
  31. <a-switch :checked="Object.keys(outbound.settings.fragment).length >0"
  32. @change="checked => outbound.settings.fragment = checked ? new Outbound.FreedomSettings.Fragment() : {}">
  33. </a-switch>
  34. </a-form-item>
  35. <template v-if="Object.keys(outbound.settings.fragment).length >0">
  36. <a-form-item label='Packets'>
  37. <a-select v-model="outbound.settings.fragment.packets" :dropdown-class-name="themeSwitcher.currentTheme">
  38. <a-select-option v-for="s in ['1-3','tlshello']" :value="s">[[ s ]]</a-select-option>
  39. </a-select>
  40. </a-form-item>
  41. <a-form-item label='Length'>
  42. <a-input v-model.trim="outbound.settings.fragment.length"></a-input>
  43. </a-form-item>
  44. <a-form-item label='Interval'>
  45. <a-input v-model.trim="outbound.settings.fragment.interval"></a-input>
  46. </a-form-item>
  47. </template>
  48. <a-form-item label='Noise'>
  49. <a-switch :checked="Object.keys(outbound.settings.noise).length >0" @change="checked => outbound.settings.noise = checked ? new Outbound.FreedomSettings.Noise() : {}"></a-switch>
  50. </a-form-item>
  51. <template v-if="Object.keys(outbound.settings.noise).length >0">
  52. <a-form-item label='Packet'>
  53. <a-input v-model.trim="outbound.settings.noise.packet"></a-input>
  54. </a-form-item>
  55. <a-form-item label='Delay'>
  56. <a-input v-model.trim="outbound.settings.noise.delay"></a-input>
  57. </a-form-item>
  58. </template>
  59. </template>
  60. <!-- blackhole settings -->
  61. <template v-if="outbound.protocol === Protocols.Blackhole">
  62. <a-form-item label='Response Type'>
  63. <a-select v-model="outbound.settings.type" :dropdown-class-name="themeSwitcher.currentTheme">
  64. <a-select-option v-for="s in ['', 'none','http']" :value="s">[[ s ]]</a-select-option>
  65. </a-select>
  66. </a-form-item>
  67. </template>
  68. <!-- dns settings -->
  69. <template v-if="outbound.protocol === Protocols.DNS">
  70. <a-form-item label='{{ i18n "pages.inbounds.network" }}'>
  71. <a-select v-model="outbound.settings.network" :dropdown-class-name="themeSwitcher.currentTheme">
  72. <a-select-option v-for="s in ['udp','tcp']" :value="s">[[ s ]]</a-select-option>
  73. </a-select>
  74. </a-form-item>
  75. <a-form-item label='non-IP queries'>
  76. <a-select v-model="outbound.settings.nonIPQuery" :dropdown-class-name="themeSwitcher.currentTheme">
  77. <a-select-option v-for="s in ['drop','skip']" :value="s">[[ s ]]</a-select-option>
  78. </a-select>
  79. </a-form-item>
  80. <a-form-item v-if="outbound.settings.nonIPQuery === 'skip'" label='Block Types' >
  81. <a-input v-model.number="outbound.settings.blockTypes"></a-input>
  82. </a-form-item>
  83. </template>
  84. <!-- wireguard settings -->
  85. <template v-if="outbound.protocol === Protocols.Wireguard">
  86. <a-form-item>
  87. <template slot="label">
  88. <a-tooltip>
  89. <template slot="title">
  90. <span>{{ i18n "pages.xray.rules.useComma" }}</span>
  91. </template>
  92. {{ i18n "pages.xray.outbound.address" }}
  93. <a-icon type="question-circle"></a-icon>
  94. </a-tooltip>
  95. </template>
  96. <a-input v-model.trim="outbound.settings.address"></a-input>
  97. </a-form-item>
  98. <a-form-item>
  99. <template slot="label">
  100. <a-tooltip>
  101. <template slot="title">
  102. <span>{{ i18n "reset" }}</span>
  103. </template>
  104. {{ i18n "pages.xray.wireguard.secretKey" }}
  105. <a-icon type="sync"
  106. @click="[outbound.settings.pubKey, outbound.settings.secretKey] = Object.values(Wireguard.generateKeypair())">
  107. </a-icon>
  108. </a-tooltip>
  109. </template>
  110. <a-input v-model.trim="outbound.settings.secretKey"></a-input>
  111. </a-form-item>
  112. <a-form-item label='{{ i18n "pages.xray.wireguard.publicKey" }}'>
  113. <a-input disabled v-model="outbound.settings.pubKey"></a-input>
  114. </a-form-item>
  115. <a-form-item label='{{ i18n "pages.xray.wireguard.domainStrategy" }}'>
  116. <a-select v-model="outbound.settings.domainStrategy" :dropdown-class-name="themeSwitcher.currentTheme">
  117. <a-select-option v-for="wds in ['', ...WireguardDomainStrategy]" :value="wds">[[ wds ]]</a-select-option>
  118. </a-select>
  119. </a-form-item>
  120. <a-form-item label='MTU'>
  121. <a-input-number v-model.number="outbound.settings.mtu" min="0"></a-input-number>
  122. </a-form-item>
  123. <a-form-item label='Workers'>
  124. <a-input-number v-model.number="outbound.settings.workers" min="0"></a-input-number>
  125. </a-form-item>
  126. <a-form-item label='Kernel Mode'>
  127. <a-switch v-model="outbound.settings.kernelMode"></a-switch>
  128. </a-form-item>
  129. <a-form-item>
  130. <template slot="label">
  131. <a-tooltip>
  132. <template slot="title">
  133. <span>{{ i18n "pages.xray.rules.useComma" }}</span>
  134. </template> Reserved <a-icon type="question-circle"></a-icon>
  135. </a-tooltip>
  136. </template>
  137. <a-input v-model="outbound.settings.reserved"></a-input>
  138. </a-form-item>
  139. <a-form-item label="Peers">
  140. <a-button icon="plus" type="primary" size="small" @click="outbound.settings.addPeer()"></a-button>
  141. </a-form-item>
  142. <a-form v-for="(peer, index) in outbound.settings.peers" :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  143. <a-divider style="margin:0;"> Peer [[ index + 1 ]] <a-icon v-if="outbound.settings.peers.length>1" type="delete" @click="() => outbound.settings.delPeer(index)" style="color: rgb(255, 77, 79);cursor: pointer;"></a-icon>
  144. </a-divider>
  145. <a-form-item label='{{ i18n "pages.xray.wireguard.endpoint" }}'>
  146. <a-input v-model.trim="peer.endpoint"></a-input>
  147. </a-form-item>
  148. <a-form-item label='{{ i18n "pages.xray.wireguard.publicKey" }}'>
  149. <a-input v-model.trim="peer.publicKey"></a-input>
  150. </a-form-item>
  151. <a-form-item label='{{ i18n "pages.xray.wireguard.psk" }}'>
  152. <a-input v-model.trim="peer.psk"></a-input>
  153. </a-form-item>
  154. <a-form-item>
  155. <template slot="label">
  156. {{ i18n "pages.xray.wireguard.allowedIPs" }}
  157. <a-button icon="plus" type="primary" size="small" @click="peer.allowedIPs.push('')"></a-button>
  158. </template>
  159. <template v-for="(aip, index) in peer.allowedIPs" style="margin-bottom: 10px;">
  160. <a-input v-model.trim="peer.allowedIPs[index]">
  161. <a-button icon="minus" v-if="peer.allowedIPs.length>1" slot="addonAfter" size="small" @click="peer.allowedIPs.splice(index, 1)"></a-button>
  162. </a-input>
  163. </template>
  164. </a-form-item>
  165. <a-form-item label='Keep Alive'>
  166. <a-input-number v-model.number="peer.keepAlive" :min="0"></a-input-number>
  167. </a-form-item>
  168. </a-form>
  169. </template>
  170. <!-- Address + Port -->
  171. <template v-if="outbound.hasAddressPort()">
  172. <a-form-item label='{{ i18n "pages.inbounds.address" }}'>
  173. <a-input v-model.trim="outbound.settings.address"></a-input>
  174. </a-form-item>
  175. <a-form-item label='{{ i18n "pages.inbounds.port" }}'>
  176. <a-input-number v-model.number="outbound.settings.port" :min="1" :max="65532"></a-input-number>
  177. </a-form-item>
  178. </template>
  179. <!-- Vnext (vless/vmess) settings -->
  180. <template v-if="[Protocols.VMess, Protocols.VLESS].includes(outbound.protocol)">
  181. <a-form-item label='ID'>
  182. <a-input v-model.trim="outbound.settings.id"></a-input>
  183. </a-form-item>
  184. <!-- vmess settings -->
  185. <template v-if="outbound.protocol === Protocols.VMess">
  186. <a-form-item label='Security'>
  187. <a-select v-model="outbound.settings.security" :dropdown-class-name="themeSwitcher.currentTheme">
  188. <a-select-option v-for="key in USERS_SECURITY" :value="key">[[ key ]]</a-select-option>
  189. </a-select>
  190. </a-form-item>
  191. </template>
  192. <!-- vless settings -->
  193. <template v-if="outbound.canEnableTlsFlow()">
  194. <a-form-item label='Flow'>
  195. <a-select v-model="outbound.settings.flow" :dropdown-class-name="themeSwitcher.currentTheme">
  196. <a-select-option value="" selected>{{ i18n "none" }}</a-select-option>
  197. <a-select-option v-for="key in TLS_FLOW_CONTROL" :value="key">[[ key ]]</a-select-option>
  198. </a-select>
  199. </a-form-item>
  200. </template>
  201. </template>
  202. <!-- Servers (trojan/shadowsocks/socks/http) settings -->
  203. <template v-if="outbound.hasServers()">
  204. <!-- http / socks -->
  205. <template v-if="outbound.hasUsername()">
  206. <a-form-item label='{{ i18n "username" }}'>
  207. <a-input v-model.trim="outbound.settings.user"></a-input>
  208. </a-form-item>
  209. <a-form-item label='{{ i18n "password" }}'>
  210. <a-input v-model.trim="outbound.settings.pass"></a-input>
  211. </a-form-item>
  212. </template>
  213. <!-- trojan/shadowsocks -->
  214. <template v-if="[Protocols.Trojan, Protocols.Shadowsocks].includes(outbound.protocol)">
  215. <a-form-item label='{{ i18n "password" }}'>
  216. <a-input v-model.trim="outbound.settings.password"></a-input>
  217. </a-form-item>
  218. </template>
  219. <!-- shadowsocks -->
  220. <template v-if="outbound.protocol === Protocols.Shadowsocks">
  221. <a-form-item label='{{ i18n "encryption" }}'>
  222. <a-select v-model="outbound.settings.method" :dropdown-class-name="themeSwitcher.currentTheme">
  223. <a-select-option v-for="(method, method_name) in SSMethods" :value="method">[[ method_name ]]</a-select-option>
  224. </a-select>
  225. </a-form-item>
  226. <a-form-item label='UDP over TCP'>
  227. <a-switch v-model="outbound.settings.uot"></a-switch>
  228. </a-form-item>
  229. <a-form-item label='UoTVersion'>
  230. <a-input-number v-model.number="outbound.settings.UoTVersion" :min="1" :max="2"></a-input-number>
  231. </a-form-item>
  232. </template>
  233. </template>
  234. <!-- stream settings -->
  235. <template v-if="outbound.canEnableStream()">
  236. <a-form-item label='{{ i18n "transmission" }}'>
  237. <a-select v-model="outbound.stream.network" @change="streamNetworkChange" :dropdown-class-name="themeSwitcher.currentTheme">
  238. <a-select-option value="tcp">TCP</a-select-option>
  239. <a-select-option value="kcp">mKCP</a-select-option>
  240. <a-select-option value="ws">WebSocket</a-select-option>
  241. <a-select-option value="http">H2</a-select-option>
  242. <a-select-option value="grpc">gRPC</a-select-option>
  243. <a-select-option value="httpupgrade">HTTPUpgrade</a-select-option>
  244. <a-select-option value="splithttp">SplitHTTP</a-select-option>
  245. </a-select>
  246. </a-form-item>
  247. <template v-if="outbound.stream.network === 'tcp'">
  248. <a-form-item label='HTTP {{ i18n "camouflage" }}'>
  249. <a-switch :checked="outbound.stream.tcp.type === 'http'" @change="checked => outbound.stream.tcp.type = checked ? 'http' : 'none'"></a-switch>
  250. </a-form-item>
  251. <template v-if="outbound.stream.tcp.type == 'http'">
  252. <a-form-item label='{{ i18n "host" }}'>
  253. <a-input v-model.trim="outbound.stream.tcp.host"></a-input>
  254. </a-form-item>
  255. <a-form-item label='{{ i18n "path" }}'>
  256. <a-input v-model.trim="outbound.stream.tcp.path"></a-input>
  257. </a-form-item>
  258. </template>
  259. </template>
  260. <!-- kcp -->
  261. <template v-if="outbound.stream.network === 'kcp'">
  262. <a-form-item label='{{ i18n "camouflage" }}'>
  263. <a-select v-model="outbound.stream.kcp.type" :dropdown-class-name="themeSwitcher.currentTheme">
  264. <a-select-option value="none">None</a-select-option>
  265. <a-select-option value="srtp">SRTP</a-select-option>
  266. <a-select-option value="utp">uTP</a-select-option>
  267. <a-select-option value="wechat-video">WeChat</a-select-option>
  268. <a-select-option value="dtls">DTLS 1.2</a-select-option>
  269. <a-select-option value="wireguard">WireGuard</a-select-option>
  270. <a-select-option value="dns">DNS</a-select-option>
  271. </a-select>
  272. </a-form-item>
  273. <a-form-item label='{{ i18n "password" }}'>
  274. <a-input v-model="outbound.stream.kcp.seed"></a-input>
  275. </a-form-item>
  276. <a-form-item label='MTU'>
  277. <a-input-number v-model.number="outbound.stream.kcp.mtu" min="0"></a-input-number>
  278. </a-form-item>
  279. <a-form-item label='TTI (ms)'>
  280. <a-input-number v-model.number="outbound.stream.kcp.tti" min="0"></a-input-number>
  281. </a-form-item>
  282. <a-form-item label='Uplink (MB/s)'>
  283. <a-input-number v-model.number="outbound.stream.kcp.upCap" min="0"></a-input-number>
  284. </a-form-item>
  285. <a-form-item label='Downlink (MB/s)'>
  286. <a-input-number v-model.number="outbound.stream.kcp.downCap" min="0"></a-input-number>
  287. </a-form-item>
  288. <a-form-item label='Congestion'>
  289. <a-switch v-model="outbound.stream.kcp.congestion"></a-switch>
  290. </a-form-item>
  291. <a-form-item label='Read Buffer (MB)'>
  292. <a-input-number v-model.number="outbound.stream.kcp.readBuffer" min="0"></a-input-number>
  293. </a-form-item>
  294. <a-form-item label='Write Buffer (MB)'>
  295. <a-input-number v-model.number="outbound.stream.kcp.writeBuffer" min="0"></a-input-number>
  296. </a-form-item>
  297. </template>
  298. <!-- ws -->
  299. <template v-if="outbound.stream.network === 'ws'">
  300. <a-form-item label='{{ i18n "host" }}'>
  301. <a-input v-model="outbound.stream.ws.host"></a-input>
  302. </a-form-item>
  303. <a-form-item label='{{ i18n "path" }}'>
  304. <a-input v-model.trim="outbound.stream.ws.path"></a-input>
  305. </a-form-item>
  306. </template>
  307. <!-- http -->
  308. <template v-if="outbound.stream.network === 'http'">
  309. <a-form-item label='{{ i18n "host" }}'>
  310. <a-input v-model.trim="outbound.stream.http.host"></a-input>
  311. </a-form-item>
  312. <a-form-item label='{{ i18n "path" }}'>
  313. <a-input v-model.trim="outbound.stream.http.path"></a-input>
  314. </a-form-item>
  315. </template>
  316. <!-- grpc -->
  317. <template v-if="outbound.stream.network === 'grpc'">
  318. <a-form-item label='Service Name'>
  319. <a-input v-model.trim="outbound.stream.grpc.serviceName"></a-input>
  320. </a-form-item>
  321. <a-form-item label="Authority">
  322. <a-input v-model.trim="outbound.stream.grpc.authority"></a-input>
  323. </a-form-item>
  324. <a-form-item label='Multi Mode'>
  325. <a-switch v-model="outbound.stream.grpc.multiMode"></a-switch>
  326. </a-form-item>
  327. </template>
  328. <!-- httpupgrade -->
  329. <template v-if="outbound.stream.network === 'httpupgrade'">
  330. <a-form-item label='{{ i18n "host" }}'>
  331. <a-input v-model="outbound.stream.httpupgrade.host"></a-input>
  332. </a-form-item>
  333. <a-form-item label='{{ i18n "path" }}'>
  334. <a-input v-model.trim="outbound.stream.httpupgrade.path"></a-input>
  335. </a-form-item>
  336. </template>
  337. <!-- splithttp -->
  338. <template v-if="outbound.stream.network === 'splithttp'">
  339. <a-form-item label='{{ i18n "host" }}'>
  340. <a-input v-model="outbound.stream.splithttp.host"></a-input>
  341. </a-form-item>
  342. <a-form-item label='{{ i18n "path" }}'>
  343. <a-input v-model.trim="outbound.stream.splithttp.path"></a-input>
  344. </a-form-item>
  345. </template>
  346. </template>
  347. <!-- tls settings -->
  348. <template v-if="outbound.canEnableTls()">
  349. <a-form-item label='{{ i18n "security" }}'>
  350. <a-radio-group v-model="outbound.stream.security" button-style="solid">
  351. <a-radio-button value="none">{{ i18n "none" }}</a-radio-button>
  352. <a-radio-button value="tls">TLS</a-radio-button>
  353. <a-radio-button v-if="outbound.canEnableReality()" value="reality">Reality</a-radio-button>
  354. </a-radio-group>
  355. </a-form-item>
  356. <template v-if="outbound.stream.isTls">
  357. <a-form-item label="SNI" placeholder="Server Name Indication">
  358. <a-input v-model.trim="outbound.stream.tls.serverName"></a-input>
  359. </a-form-item>
  360. <a-form-item label="uTLS">
  361. <a-select v-model="outbound.stream.tls.fingerprint" :dropdown-class-name="themeSwitcher.currentTheme">
  362. <a-select-option value=''>None</a-select-option>
  363. <a-select-option v-for="key in UTLS_FINGERPRINT" :value="key">[[ key ]]</a-select-option>
  364. </a-select>
  365. </a-form-item>
  366. <a-form-item label="ALPN">
  367. <a-select mode="multiple" :dropdown-class-name="themeSwitcher.currentTheme" v-model="outbound.stream.tls.alpn">
  368. <a-select-option v-for="alpn in ALPN_OPTION" :value="alpn">[[ alpn ]]</a-select-option>
  369. </a-select>
  370. </a-form-item>
  371. <a-form-item label="Allow Insecure">
  372. <a-switch v-model="outbound.stream.tls.allowInsecure"></a-switch>
  373. </a-form-item>
  374. </template>
  375. <!-- reality settings -->
  376. <template v-if="outbound.stream.isReality">
  377. <a-form-item label="SNI">
  378. <a-input v-model.trim="outbound.stream.reality.serverName"></a-input>
  379. </a-form-item>
  380. <a-form-item label="uTLS">
  381. <a-select v-model="outbound.stream.reality.fingerprint" :dropdown-class-name="themeSwitcher.currentTheme">
  382. <a-select-option v-for="key in UTLS_FINGERPRINT" :value="key">[[ key ]]</a-select-option>
  383. </a-select>
  384. </a-form-item>
  385. <a-form-item label="Short ID">
  386. <a-input v-model.trim="outbound.stream.reality.shortId" style="width:250px"></a-input>
  387. </a-form-item>
  388. <a-form-item label="SpiderX">
  389. <a-input v-model.trim="outbound.stream.reality.spiderX" style="width:250px"></a-input>
  390. </a-form-item>
  391. <a-form-item label="Public Key">
  392. <a-input v-model.trim="outbound.stream.reality.publicKey"></a-input>
  393. </a-form-item>
  394. </template>
  395. </template>
  396. <!-- sockopt settings -->
  397. <a-form-item label="Sockopts">
  398. <a-switch v-model="outbound.stream.sockoptSwitch"></a-switch>
  399. </a-form-item>
  400. <template v-if="outbound.stream.sockoptSwitch">
  401. <a-form-item label="Dialer Proxy">
  402. <a-select v-model="outbound.stream.sockopt.dialerProxy" :dropdown-class-name="themeSwitcher.currentTheme">
  403. <a-select-option v-for="tag in ['', ...outModal.tags]" :value="tag">[[ tag ]]</a-select-option>
  404. </a-select>
  405. </a-form-item>
  406. <a-form-item label="TCP Fast Open">
  407. <a-switch v-model="outbound.stream.sockopt.tcpFastOpen"></a-switch>
  408. </a-form-item>
  409. <a-form-item label="Keep Alive Interval">
  410. <a-input-number v-model="outbound.stream.sockopt.tcpKeepAliveInterval" :min="0"></a-input-number>
  411. </a-form-item>
  412. <a-form-item label="Multipath TCP">
  413. <a-switch v-model.trim="outbound.stream.sockopt.tcpMptcp"></a-switch>
  414. </a-form-item>
  415. <a-form-item label="TCP No-Delay">
  416. <a-switch v-model="outbound.stream.sockopt.tcpNoDelay"></a-switch>
  417. </a-form-item>
  418. </template>
  419. <!-- mux settings -->
  420. <template v-if="outbound.canEnableMux()">
  421. <a-form-item label="Mux">
  422. <a-switch v-model="outbound.mux.enabled"></a-switch>
  423. </a-form-item>
  424. <template v-if="outbound.mux.enabled">
  425. <a-form-item label="Concurrency">
  426. <a-input-number v-model="outbound.mux.concurrency" :min="-1" :max="1024"></a-input-number>
  427. </a-form-item>
  428. <a-form-item label="xudp Concurrency">
  429. <a-input-number v-model="outbound.mux.xudpConcurrency" :min="-1" :max="1024"></a-input-number>
  430. </a-form-item>
  431. <a-form-item label="xudp UDP 443">
  432. <a-select v-model="outbound.mux.xudpProxyUDP443" :dropdown-class-name="themeSwitcher.currentTheme">
  433. <a-select-option v-for="c in ['reject', 'allow', 'skip']" :value="c">[[ c ]]</a-select-option>
  434. </a-select>
  435. </a-form-item>
  436. </template>
  437. </template>
  438. </a-form>
  439. </a-tab-pane>
  440. <a-tab-pane key="2" tab="JSON" force-render="true">
  441. <a-form-item style="margin: 10px 0"> Link: <a-input v-model.trim="outModal.link" style="width: 300px; margin-right: 5px;" placeholder="vmess:// vless:// trojan:// ss://"></a-input>
  442. <a-button @click="convertLink" type="primary">
  443. <a-icon type="form"></a-icon>
  444. </a-button>
  445. </a-form-item>
  446. <textarea style="position:absolute; left: -800px;" id="outboundJson"></textarea>
  447. </a-tab-pane>
  448. </a-tabs>
  449. {{end}}