stream_sockopt.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {{define "form/streamSockopt"}}
  2. <a-divider style="margin:5px 0 0;"></a-divider>
  3. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  4. <a-form-item label="Sockopt">
  5. <a-switch v-model="inbound.stream.sockoptSwitch"></a-switch>
  6. </a-form-item>
  7. <template v-if="inbound.stream.sockoptSwitch">
  8. <a-form-item label="Route Mark">
  9. <a-input-number v-model="inbound.stream.sockopt.mark" :min="0"></a-input-number>
  10. </a-form-item>
  11. <a-form-item label="TCP Keep Alive Interval">
  12. <a-input-number v-model="inbound.stream.sockopt.tcpKeepAliveInterval" :min="0"></a-input-number>
  13. </a-form-item>
  14. <a-form-item label="TCP Keep Alive Idle">
  15. <a-input-number v-model="inbound.stream.sockopt.tcpKeepAliveIdle" :min="0"></a-input-number>
  16. </a-form-item>
  17. <a-form-item label="TCP Max Seg">
  18. <a-input-number v-model="inbound.stream.sockopt.tcpMaxSeg" :min="0"></a-input-number>
  19. </a-form-item>
  20. <a-form-item label="TCP User Timeout">
  21. <a-input-number v-model="inbound.stream.sockopt.tcpUserTimeout" :min="0"></a-input-number>
  22. </a-form-item>
  23. <a-form-item label="TCP Window Clamp">
  24. <a-input-number v-model="inbound.stream.sockopt.tcpWindowClamp" :min="0"></a-input-number>
  25. </a-form-item>
  26. <a-form-item label="Proxy Protocol">
  27. <a-switch v-model="inbound.stream.sockopt.acceptProxyProtocol"></a-switch>
  28. </a-form-item>
  29. <a-form-item label="TCP Fast Open">
  30. <a-switch v-model.trim="inbound.stream.sockopt.tcpFastOpen"></a-switch>
  31. </a-form-item>
  32. <a-form-item label="Multipath TCP">
  33. <a-switch v-model.trim="inbound.stream.sockopt.tcpMptcp"></a-switch>
  34. </a-form-item>
  35. <a-form-item label="TCP No-Delay">
  36. <a-switch v-model.trim="inbound.stream.sockopt.tcpNoDelay"></a-switch>
  37. </a-form-item>
  38. <a-form-item label="V6 Only">
  39. <a-switch v-model.trim="inbound.stream.sockopt.V6Only"></a-switch>
  40. </a-form-item>
  41. <a-form-item label='Domain Strategy'>
  42. <a-select v-model="inbound.stream.sockopt.domainStrategy" style="width: 50%" :dropdown-class-name="themeSwitcher.currentTheme">
  43. <a-select-option v-for="key in DOMAIN_STRATEGY_OPTION" :value="key">[[ key ]]</a-select-option>
  44. </a-select>
  45. </a-form-item>
  46. <a-form-item label='TCP Congestion'>
  47. <a-select v-model="inbound.stream.sockopt.tcpcongestion" style="width: 50%" :dropdown-class-name="themeSwitcher.currentTheme">
  48. <a-select-option v-for="key in TCP_CONGESTION_OPTION" :value="key">[[ key ]]</a-select-option>
  49. </a-select>
  50. </a-form-item>
  51. <a-form-item label="TProxy">
  52. <a-select v-model="inbound.stream.sockopt.tproxy" style="width: 50%" :dropdown-class-name="themeSwitcher.currentTheme">
  53. <a-select-option value="off">Off</a-select-option>
  54. <a-select-option value="redirect">Redirect</a-select-option>
  55. <a-select-option value="tproxy">TProxy</a-select-option>
  56. </a-select>
  57. </a-form-item>
  58. <a-form-item label="Dialer Proxy">
  59. <a-input v-model="inbound.stream.sockopt.dialerProxy"></a-input>
  60. </a-form-item>
  61. <a-form-item label="Interface Name">
  62. <a-input v-model="inbound.stream.sockopt.interfaceName"></a-input>
  63. </a-form-item>
  64. </template>
  65. </a-form>
  66. {{end}}