Problema em Notice: Undefined index: HTTP_X_REAL_IP

Alguem poderia me ajudar com esse erro?
Notice : Undefined index: HTTP_X_REAL_IP in C:\Users\Admin\Desktop\Xampp\htdocs\sdd\includes\waf.php on line 309

eu ja tentei arrumar mais não consigo poderiam me ajudar com esse codigo?:

}
function useCloudflare() {
	$this->IPHeader = "HTTP_CF_CONNECTING_IP";
}
function useBlazingfast() {
	$this->IPHeader = "X-Real-IP";
}
function customIPHeader($String = 'REMOTE_ADDR') {
	$this->IPHeader = $String;
}
function antiCookieSteal($listparams = 'username') {
	$this->CookieCheck = true;
	$this->CookieCheckParam = $listparams;
}
function cookieCheck() {
	// Check Anti-Cookie steal trick.
	if ($this->CookieCheck == true) {
		// Check then.
		if (isset($_SESSION)) { // Session set.
			if (isset($_SESSION[$this->CookieCheckParam])) { // Logged.
				if (!(isset($_SESSION['xWAF-IP']))) {
					$_SESSION['xWAF-IP'] = $_SERVER[$this->IPHeader];
					return true;
				} else {
					if (!($_SESSION['xWAF-IP'] == $_SERVER[$this->IPHeader])) {
						// Changed IP.
						unset($_SESSION['xWAF-IP']);
						unset($_SESSION);
						@session_destroy();
						@session_start();
						return true;
					}
				}
			}
		}
	}
}
function start() {
	@session_start();
	@$this->checkGET();
	@$this->checkPOST();
	@$this->checkCOOKIE();
	if ($this->CookieCheck == true) {
		$this->cookieCheck();
	}
}

}
?>

o erro fala que está na linha 309:
if (!($_SESSION[‘xWAF-IP’] == $_SERVER[$this->IPHeader])) {