stream_kcp.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{define "form/streamKCP"}}
  2. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  3. <a-form-item label='{{ i18n "camouflage" }}'>
  4. <a-select v-model="inbound.stream.kcp.type" style="width: 50%" :dropdown-class-name="themeSwitcher.currentTheme">
  5. <a-select-option value="none">None</a-select-option>
  6. <a-select-option value="srtp">SRTP</a-select-option>
  7. <a-select-option value="utp">uTP</a-select-option>
  8. <a-select-option value="wechat-video">WeChat</a-select-option>
  9. <a-select-option value="dtls">DTLS 1.2</a-select-option>
  10. <a-select-option value="wireguard">WireGuard</a-select-option>
  11. <a-select-option value="dns">DNS</a-select-option>
  12. </a-select>
  13. </a-form-item>
  14. <a-form-item>
  15. <template slot="label">
  16. <a-tooltip>
  17. <template slot="title">
  18. <span>{{ i18n "reset" }}</span>
  19. </template>
  20. {{ i18n "password" }}
  21. <a-icon @click="inbound.stream.kcp.seed = RandomUtil.randomSeq(10)"type="sync"> </a-icon>
  22. </a-tooltip>
  23. </template>
  24. <a-input v-model.trim="inbound.stream.kcp.seed"></a-input>
  25. </a-form-item>
  26. <a-form-item label='MTU'>
  27. <a-input-number v-model.number="inbound.stream.kcp.mtu" :min="576" :max="1460"></a-input-number>
  28. </a-form-item>
  29. <a-form-item label='TTI (ms)'>
  30. <a-input-number v-model.number="inbound.stream.kcp.tti" :min="10" :max="100"></a-input-number>
  31. </a-form-item>
  32. <a-form-item label='Uplink (MB/s)'>
  33. <a-input-number v-model.number="inbound.stream.kcp.upCap" :min="0"></a-input-number>
  34. </a-form-item>
  35. <a-form-item label='Downlink (MB/s)'>
  36. <a-input-number v-model.number="inbound.stream.kcp.downCap" :min="0"></a-input-number>
  37. </a-form-item>
  38. <a-form-item label='Congestion'>
  39. <a-switch v-model="inbound.stream.kcp.congestion"></a-switch>
  40. </a-form-item>
  41. <a-form-item label='Read Buffer (MB)'>
  42. <a-input-number v-model.number="inbound.stream.kcp.readBuffer" :min="0"></a-input-number>
  43. </a-form-item>
  44. <a-form-item label='Write Buffer (MB)'>
  45. <a-input-number v-model.number="inbound.stream.kcp.writeBuffer" :min="0"></a-input-number>
  46. </a-form-item>
  47. </a-form>
  48. {{end}}