outbound.html 23 KB

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