stream_kcp.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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>
  12. </a-form-item>
  13. <a-form-item>
  14. <template slot="label">
  15. <a-tooltip>
  16. <template slot="title">
  17. <span>{{ i18n "reset" }}</span>
  18. </template>
  19. {{ i18n "password" }}
  20. <a-icon @click="inbound.stream.kcp.seed = RandomUtil.randomSeq(10)"type="sync"> </a-icon>
  21. </a-tooltip>
  22. </template>
  23. <a-input v-model.trim="inbound.stream.kcp.seed"></a-input>
  24. </a-form-item>
  25. <a-form-item label='MTU'>
  26. <a-input-number v-model.number="inbound.stream.kcp.mtu" :min="576" :max="1460"></a-input-number>
  27. </a-form-item>
  28. <a-form-item label='TTI (ms)'>
  29. <a-input-number v-model.number="inbound.stream.kcp.tti" :min="10" :max="100"></a-input-number>
  30. </a-form-item>
  31. <a-form-item label='Uplink (MB/s)'>
  32. <a-input-number v-model.number="inbound.stream.kcp.upCap" :min="0"></a-input-number>
  33. </a-form-item>
  34. <a-form-item label='Downlink (MB/s)'>
  35. <a-input-number v-model.number="inbound.stream.kcp.downCap" :min="0"></a-input-number>
  36. </a-form-item>
  37. <a-form-item label='Congestion'>
  38. <a-switch v-model="inbound.stream.kcp.congestion"></a-switch>
  39. </a-form-item>
  40. <a-form-item label='Read Buffer (MB)'>
  41. <a-input-number v-model.number="inbound.stream.kcp.readBuffer" :min="0"></a-input-number>
  42. </a-form-item>
  43. <a-form-item label='Write Buffer (MB)'>
  44. <a-input-number v-model.number="inbound.stream.kcp.writeBuffer" :min="0"></a-input-number>
  45. </a-form-item>
  46. </a-form>
  47. {{end}}