reality_targets.js 1.0 KB

12345678910111213141516171819202122232425
  1. // List of popular services for VLESS Reality Target/SNI randomization
  2. const REALITY_TARGETS = [
  3. { target: 'www.amazon.com:443', sni: 'www.amazon.com' },
  4. { target: 'aws.amazon.com:443', sni: 'aws.amazon.com' },
  5. { target: 'www.oracle.com:443', sni: 'www.oracle.com' },
  6. { target: 'www.nvidia.com:443', sni: 'www.nvidia.com' },
  7. { target: 'www.amd.com:443', sni: 'www.amd.com' },
  8. { target: 'www.intel.com:443', sni: 'www.intel.com' },
  9. { target: 'www.tesla.com:443', sni: 'www.tesla.com' },
  10. { target: 'www.sony.com:443', sni: 'www.sony.com' }
  11. ];
  12. /**
  13. * Returns a random Reality target configuration from the predefined list
  14. * @returns {Object} Object with target and sni properties
  15. */
  16. function getRandomRealityTarget() {
  17. const randomIndex = Math.floor(Math.random() * REALITY_TARGETS.length);
  18. const selected = REALITY_TARGETS[randomIndex];
  19. // Return a copy to avoid reference issues
  20. return {
  21. target: selected.target,
  22. sni: selected.sni
  23. };
  24. }