Merge branch 'ent-6433-server-does-not-have-access-to-the-api' into 'develop'
Ent 6433 server does not have access to the api Closes pandora_enterprise#6433 See merge request artica/pandorafms!3503
This commit is contained in:
commit
f83737b01f
|
@ -590,7 +590,7 @@ sub main() {
|
||||||
my $include_api = 'include/api.php';
|
my $include_api = 'include/api.php';
|
||||||
# If public_url is empty in database
|
# If public_url is empty in database
|
||||||
if ( $console_api_url eq '' ) {
|
if ( $console_api_url eq '' ) {
|
||||||
$Config{"console_api_url"} = 'http://localhost/pandora_console/' . $include_api;
|
$Config{"console_api_url"} = 'http://127.0.0.1/pandora_console/' . $include_api;
|
||||||
logger(\%Config, "Assuming default path for API url: " . $Config{"console_api_url"}, 3);
|
logger(\%Config, "Assuming default path for API url: " . $Config{"console_api_url"}, 3);
|
||||||
} else {
|
} else {
|
||||||
$Config{"console_api_url"} = $console_api_url . $include_api;
|
$Config{"console_api_url"} = $console_api_url . $include_api;
|
||||||
|
|
Loading…
Reference in New Issue