| Server IP : 104.21.21.239 / Your IP : 216.73.217.139 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tgnew/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
/**
* File: Cdnfsd_Util.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class Cdnfsd_Util
*/
class Cdnfsd_Util {
/**
* Engine name retrieval.
*
* @param string $engine The name of the engine to retrieve.
*
* @return string The name of the engine.
*/
public static function engine_name( $engine ) {
return $engine;
}
/**
* Get suggested home IP address.
*
* @return string The resolved IP address or an empty string if it resolves to a local IP.
*/
public static function get_suggested_home_ip() {
$ip = gethostbyname( Util_Environment::home_url_host() );
// check if it resolves to local IP, means host cant know its real IP.
if (
'127.' === substr( $ip, 0, 4 ) ||
'10.' === substr( $ip, 0, 3 ) ||
'192.168.' === substr( $ip, 0, 8 )
) {
return '';
}
return $ip;
}
}