stream_settings.html 1.6 KB

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