mirror of
https://github.com/nextcloud/server.git
synced 2024-08-23 17:57:31 +02:00
Don't specify host when using a socket.
This commit is contained in:
parent
0932760304
commit
73062040e6
@ -78,12 +78,12 @@ class OC_DB {
|
|||||||
// Host variable may carry a port or socket.
|
// Host variable may carry a port or socket.
|
||||||
list($host, $portOrSocket) = explode(':', $host, 2);
|
list($host, $portOrSocket) = explode(':', $host, 2);
|
||||||
if (ctype_digit($portOrSocket)) {
|
if (ctype_digit($portOrSocket)) {
|
||||||
|
$connectionParams['host'] = $host;
|
||||||
$connectionParams['port'] = $portOrSocket;
|
$connectionParams['port'] = $portOrSocket;
|
||||||
} else {
|
} else {
|
||||||
$connectionParams['unix_socket'] = $portOrSocket;
|
$connectionParams['unix_socket'] = $portOrSocket;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$connectionParams['host'] = $host;
|
|
||||||
$connectionParams['dbname'] = $name;
|
$connectionParams['dbname'] = $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user