sniffing.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{define "form/sniffing"}}
  2. <a-form
  3. :colon="false"
  4. :label-col="{ md: {span:8} }"
  5. :wrapper-col="{ md: {span:14} }"
  6. >
  7. <a-form-item>
  8. <span slot="label">
  9. {{ i18n "enabled" }}
  10. <a-tooltip>
  11. <template slot="title">
  12. <span>{{ i18n "pages.inbounds.noRecommendKeepDefault" }}</span>
  13. </template>
  14. <a-icon type="question-circle"></a-icon>
  15. </a-tooltip>
  16. </span>
  17. <a-switch v-model="inbound.sniffing.enabled"></a-switch>
  18. </a-form-item>
  19. <template v-if="inbound.sniffing.enabled">
  20. <a-form-item :wrapper-col="{span:24}">
  21. <a-checkbox-group v-model="inbound.sniffing.destOverride">
  22. <a-checkbox v-for="key,value in SNIFFING_OPTION" :value="key"
  23. >[[ value ]]</a-checkbox
  24. >
  25. </a-checkbox-group>
  26. </a-form-item>
  27. <a-form-item label="Metadata Only">
  28. <a-switch v-model="inbound.sniffing.metadataOnly"></a-switch>
  29. </a-form-item>
  30. <a-form-item label="Route Only">
  31. <a-switch v-model="inbound.sniffing.routeOnly"></a-switch>
  32. </a-form-item>
  33. <a-form-item label="IPs Excluded">
  34. <a-select
  35. mode="tags"
  36. v-model="inbound.sniffing.ipsExcluded"
  37. :style="{ width: '100%' }"
  38. :token-separators="[',']"
  39. placeholder="IP/CIDR/geoip:*/ext:*"
  40. ></a-select>
  41. </a-form-item>
  42. <a-form-item label="Domains Excluded">
  43. <a-select
  44. mode="tags"
  45. v-model="inbound.sniffing.domainsExcluded"
  46. :style="{ width: '100%' }"
  47. :token-separators="[',']"
  48. placeholder="domain:*/ext:*"
  49. ></a-select>
  50. </a-form-item>
  51. </template>
  52. </a-form>
  53. {{end}}