reality_targets.js 971 B

123456789101112131415161718192021222324
  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.sony.com:443', sni: 'www.sony.com' }
  10. ];
  11. /**
  12. * Returns a random Reality target configuration from the predefined list
  13. * @returns {Object} Object with target and sni properties
  14. */
  15. function getRandomRealityTarget() {
  16. const randomIndex = Math.floor(Math.random() * REALITY_TARGETS.length);
  17. const selected = REALITY_TARGETS[randomIndex];
  18. // Return a copy to avoid reference issues
  19. return {
  20. target: selected.target,
  21. sni: selected.sni
  22. };
  23. }