stream_sockopt.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{define "form/streamSockopt"}}
  2. <a-form layout="inline">
  3. <a-divider dashed style="margin:0;">
  4. <a-form-item label="Transparent Proxy">
  5. <a-switch v-model="inbound.stream.sockoptSwitch"></a-switch>
  6. </a-form-item>
  7. </a-divider>
  8. <table width="100%" class="ant-table-tbody" v-if="inbound.stream.sockoptSwitch">
  9. <tr>
  10. <td>Accept Proxy Protocol</td>
  11. <td>
  12. <a-form-item>
  13. <a-switch v-model="inbound.stream.sockopt.acceptProxyProtocol"></a-switch>
  14. </a-form-item>
  15. </td>
  16. </tr>
  17. <tr>
  18. <td>TCP FastOpen</td>
  19. <td>
  20. <a-form-item>
  21. <a-switch v-model.trim="inbound.stream.sockopt.tcpFastOpen"></a-switch>
  22. </a-form-item>
  23. </td>
  24. </tr>
  25. <tr>
  26. <td>Route Mark</td>
  27. <td>
  28. <a-form-item>
  29. <a-input-number v-model="inbound.stream.sockopt.mark" :min="0"></a-input-number>
  30. </a-form-item>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td>T-Proxy</td>
  35. <td>
  36. <a-form-item>
  37. <a-select v-model="inbound.stream.sockopt.tproxy" style="width: 250px;"
  38. :dropdown-class-name="themeSwitcher.darkCardClass">
  39. <a-select-option value="off">OFF</a-select-option>
  40. <a-select-option value="redirect">Redirect</a-select-option>
  41. <a-select-option value="tproxy">T-Proxy</a-select-option>
  42. </a-select>
  43. </a-form-item>
  44. </td>
  45. </tr>
  46. </table>
  47. </a-form>
  48. {{end}}