stream_sockopt.html 1.2 KB

1234567891011121314151617181920212223242526
  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="TPROXY">
  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=PROXY Protocol">
  9. <a-switch v-model="inbound.stream.sockopt.acceptProxyProtocol"></a-switch>
  10. </a-form-item>
  11. <a-form-item label="TCP Fast Open">
  12. <a-switch v-model.trim="inbound.stream.sockopt.tcpFastOpen"></a-switch>
  13. </a-form-item>
  14. <a-form-item label="Route Mark">
  15. <a-input-number v-model="inbound.stream.sockopt.mark" :min="0"></a-input-number>
  16. </a-form-item>
  17. <a-form-item label="TPROXY">
  18. <a-select v-model="inbound.stream.sockopt.tproxy" :dropdown-class-name="themeSwitcher.currentTheme">
  19. <a-select-option value="off">Off</a-select-option>
  20. <a-select-option value="redirect">Redirect</a-select-option>
  21. <a-select-option value="tproxy">TPROXY</a-select-option>
  22. </a-select>
  23. </a-form-item>
  24. </template>
  25. </a-form>
  26. {{end}}