stream_settings.html 1.9 KB

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