Skip to content

Commit

Permalink
API Remove deprecated SS_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu authored and Damian Mooyman committed May 8, 2017
1 parent afd1575 commit 75b7e19
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Control/Director.php
Expand Up @@ -575,17 +575,6 @@ public static function host()
}
}

// Legacy ss4-alpha environment var
/**
* @todo remove at 4.0.0-beta1
* @deprecated 4.0.0-beta1
*/
$legacyHostname = getenv('SS_HOST');
if ($legacyHostname) {
Deprecation::notice('4.0', 'SS_HOST will be removed in ss 4.0.0-beta1');
return $legacyHostname;
}

// Fail over to server_name (least reliable)
return isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : gethostname();
}
Expand Down

0 comments on commit 75b7e19

Please sign in to comment.