From 7f9a981a500f0dcb58822b0a6e8d40b2634e0643 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Mon, 14 Dec 2015 15:11:44 -0500 Subject: [PATCH] Revert "PHPLIB-151: Use IPv4 localhost address for default URI" This reverts commit 451f72c478a70e90d723da23a8eb1fd54169f735. --- src/Client.php | 2 +- tests/ClientTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 75c848082..102d617c1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -28,7 +28,7 @@ class Client * @param array $options Additional connection string options * @param array $driverOptions Driver-specific options */ - public function __construct($uri = 'mongodb://127.0.0.1:27017', array $options = [], array $driverOptions = []) + public function __construct($uri = 'mongodb://localhost:27017', array $options = [], array $driverOptions = []) { $this->manager = new Manager($uri, $options, $driverOptions); $this->uri = (string) $uri; diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 89a86c473..e3a059dde 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -15,7 +15,7 @@ public function testConstructorDefaultUri() { $client = new Client(); - $this->assertEquals('mongodb://127.0.0.1:27017', (string) $client); + $this->assertEquals('mongodb://localhost:27017', (string) $client); } public function testToString()