stream_settings.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 (RAW)</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">HTTP</a-select-option>
  11. <a-select-option value="grpc">gRPC</a-select-option>
  12. <a-select-option value="httpupgrade">HTTPUpgrade</a-select-option>
  13. <a-select-option value="splithttp">SplitHTTP</a-select-option>
  14. </a-select>
  15. </a-form-item>
  16. </a-form>
  17. <!-- tcp -->
  18. <template v-if="inbound.stream.network === 'tcp'">
  19. {{template "form/streamTCP"}}
  20. </template>
  21. <!-- kcp -->
  22. <template v-if="inbound.stream.network === 'kcp'">
  23. {{template "form/streamKCP"}}
  24. </template>
  25. <!-- ws -->
  26. <template v-if="inbound.stream.network === 'ws'">
  27. {{template "form/streamWS"}}
  28. </template>
  29. <!-- http -->
  30. <template v-if="inbound.stream.network === 'http'">
  31. {{template "form/streamHTTP"}}
  32. </template>
  33. <!-- grpc -->
  34. <template v-if="inbound.stream.network === 'grpc'">
  35. {{template "form/streamGRPC"}}
  36. </template>
  37. <!-- httpupgrade -->
  38. <template v-if="inbound.stream.network === 'httpupgrade'">
  39. {{template "form/streamHTTPUpgrade"}}
  40. </template>
  41. <!-- splithttp -->
  42. <template v-if="inbound.stream.network === 'splithttp'">
  43. {{template "form/streamSplitHTTP"}}
  44. </template>
  45. <!-- sockopt -->
  46. <template>
  47. {{template "form/streamSockopt"}}
  48. </template>
  49. {{end}}