Skip to content

Commit 52e0277

Browse files
committed
Allow for a dbmaster to be on the same host but different port, #6691
1 parent 2c9226e commit 52e0277

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/lib/app.inc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ function __construct() {
8383
if we are in a multiserver setup
8484
*/
8585

86-
if($conf['dbmaster_host'] != '' && ($conf['dbmaster_host'] != $conf['db_host'] || ($conf['dbmaster_host'] == $conf['db_host'] && $conf['dbmaster_database'] != $conf['db_database']))) {
86+
if($conf['dbmaster_host'] != ''
87+
&& ($conf['dbmaster_host'] != $conf['db_host']
88+
|| ($conf['dbmaster_host'] == $conf['db_host']
89+
&& ($conf['dbmaster_database'] != $conf['db_database'] || $conf['dbmaster_port'] != $conf['db_port'])))) {
8790
try {
8891
$this->dbmaster = new db($conf['dbmaster_host'], $conf['dbmaster_user'], $conf['dbmaster_password'], $conf['dbmaster_database'], $conf['dbmaster_port'], $conf['dbmaster_client_flags']);
8992
} catch (Exception $e) {

0 commit comments

Comments
 (0)