1
0

stream_settings.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {{define "form/streamSettings"}}
  2. <!-- select stream network -->
  3. <a-form
  4. :colon="false"
  5. :label-col="{ md: {span:8} }"
  6. :wrapper-col="{ md: {span:14} }"
  7. v-if="inbound.protocol != Protocols.HYSTERIA"
  8. >
  9. <a-form-item label='{{ i18n "transmission" }}'>
  10. <a-select
  11. v-model="inbound.stream.network"
  12. :style="{ width: '75%' }"
  13. @change="streamNetworkChange"
  14. :dropdown-class-name="themeSwitcher.currentTheme"
  15. >
  16. <a-select-option value="tcp">TCP (RAW)</a-select-option>
  17. <a-select-option value="kcp">mKCP</a-select-option>
  18. <a-select-option value="ws">WebSocket</a-select-option>
  19. <a-select-option value="grpc">gRPC</a-select-option>
  20. <a-select-option value="httpupgrade">HTTPUpgrade</a-select-option>
  21. <a-select-option value="xhttp">XHTTP</a-select-option>
  22. </a-select>
  23. </a-form-item>
  24. </a-form>
  25. <!-- tcp -->
  26. <template v-if="inbound.stream.network === 'tcp'">
  27. {{template "form/streamTCP"}}
  28. </template>
  29. <!-- kcp -->
  30. <template v-if="inbound.stream.network === 'kcp'">
  31. {{template "form/streamKCP"}}
  32. </template>
  33. <!-- ws -->
  34. <template v-if="inbound.stream.network === 'ws'">
  35. {{template "form/streamWS"}}
  36. </template>
  37. <!-- grpc -->
  38. <template v-if="inbound.stream.network === 'grpc'">
  39. {{template "form/streamGRPC"}}
  40. </template>
  41. <!-- hysteria -->
  42. <template v-if="inbound.stream.network === 'hysteria'">
  43. {{template "form/streamHysteria"}}
  44. </template>
  45. <!-- httpupgrade -->
  46. <template v-if="inbound.stream.network === 'httpupgrade'">
  47. {{template "form/streamHTTPUpgrade"}}
  48. </template>
  49. <!-- xhttp -->
  50. <template v-if="inbound.stream.network === 'xhttp'">
  51. {{template "form/streamXHTTP"}}
  52. </template>
  53. <!-- sockopt -->
  54. <template> {{template "form/streamSockopt"}} </template>
  55. <!-- finalmask -->
  56. <template> {{template "form/streamFinalMask"}} </template>
  57. {{end}}