reality_settings.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {{define "form/realitySettings"}}
  2. <template>
  3. <a-form-item label='Show'>
  4. <a-switch v-model="inbound.stream.reality.show"></a-switch>
  5. </a-form-item>
  6. <a-form-item label='Xver'>
  7. <a-input-number v-model.number="inbound.stream.reality.xver" :min="0"></a-input-number>
  8. </a-form-item>
  9. <a-form-item label='uTLS'>
  10. <a-select v-model="inbound.stream.reality.settings.fingerprint" style="width: 50%"
  11. :dropdown-class-name="themeSwitcher.currentTheme">
  12. <a-select-option v-for="key in UTLS_FINGERPRINT" :value="key">[[ key ]]</a-select-option>
  13. </a-select>
  14. </a-form-item>
  15. <a-form-item label='Dest (Target)'>
  16. <a-input v-model.trim="inbound.stream.reality.dest"></a-input>
  17. </a-form-item>
  18. <a-form-item label='SNI'>
  19. <a-input v-model.trim="inbound.stream.reality.serverNames"></a-input>
  20. </a-form-item>
  21. <a-form-item label='Max Time Diff (ms)'>
  22. <a-input-number v-model.number="inbound.stream.reality.maxTimediff" :min="0"></a-input-number>
  23. </a-form-item>
  24. <!-- we also have this but i think it's not necessary
  25. <a-form-item label='Min Client'>
  26. <a-input v-model.trim="inbound.stream.reality.minClient"></a-input>
  27. </a-form-item>
  28. <a-form-item label='Max Client'>
  29. <a-input v-model.trim="inbound.stream.reality.maxClient"></a-input>
  30. </a-form-item>
  31. -->
  32. <a-form-item>
  33. <template slot="label">
  34. <a-tooltip>
  35. <template slot="title">
  36. <span>{{ i18n "reset" }}</span>
  37. </template> Short IDs <a-icon @click="inbound.stream.reality.shortIds = RandomUtil.randomShortIds()"
  38. type="sync"></a-icon>
  39. </a-tooltip>
  40. </template>
  41. <a-input v-model.trim="inbound.stream.reality.shortIds"></a-input>
  42. </a-form-item>
  43. <a-form-item label='SpiderX'>
  44. <a-input v-model.trim="inbound.stream.reality.settings.spiderX"></a-input>
  45. </a-form-item>
  46. <a-form-item label='{{ i18n "pages.inbounds.privatekey" }}'>
  47. <a-input v-model.trim="inbound.stream.reality.privateKey"></a-input>
  48. </a-form-item>
  49. <a-form-item label='{{ i18n "pages.inbounds.publicKey" }}'>
  50. <a-input v-model.trim="inbound.stream.reality.settings.publicKey"></a-input>
  51. </a-form-item>
  52. <a-form-item label=" ">
  53. <a-button type="primary" icon="import" @click="getNewX25519Cert">Get New Cert</a-button>
  54. </a-form-item>
  55. </template>
  56. {{end}}