1
0

outbound.html 24 KB

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