Skip to content

Commit

Permalink
Revert "change config parameter and add to config default"
Browse files Browse the repository at this point in the history
This reverts commit 062194d.
  • Loading branch information
em92 committed Jul 27, 2021
1 parent 2bb4f21 commit 99d6203
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lib/BridgeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function getWhitelist() {
$contents = '';
}

if($contents === '*' || Configuration::getConfig('bridges', 'whitelistall')) { // Whitelist all bridges
if($contents === '*' || Configuration::getConfig('heroku', 'review')) { // Whitelist all bridges
$this->whitelist = $this->getBridgeNames();
} else {
//$this->$whitelist = array_map('$this->sanitizeBridgeName', explode("\n", $contents));
Expand Down
3 changes: 0 additions & 3 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ public static function loadConfiguration() {
if(!is_bool(self::getConfig('proxy', 'by_bridge')))
self::reportConfigurationError('proxy', 'by_bridge', 'Is not a valid Boolean');

if(!is_bool(self::getConfig('bridges', 'whitelistall')))
self::reportConfigurationError('bridges', 'whitelistall', 'Is not a valid Boolean');

/** True if proxy usage can be enabled selectively for each bridge */
define('PROXY_BYBRIDGE', self::getConfig('proxy', 'by_bridge'));

Expand Down

0 comments on commit 99d6203

Please sign in to comment.