@@ -13,12 +13,12 @@ This behavior can be changed by using the `setHosts()` method on `ClientBuilder`
1313
1414``` php
1515$hosts = [
16- '192.168.1.1 :9200', // IP + Port
17- '192.168.1.2 ', // Just IP
16+ '192.0.2.0 :9200', // IP + Port
17+ '192.0.2.0 ', // Just IP
1818 'mydomain.server.com:9201', // Domain + Port
1919 'mydomain2.server.com', // Just Domain
2020 'https://localhost', // SSL to localhost
21- 'https://192.168.1.3 :9200' // SSL to IP + Port
21+ 'https://192.0.2.0 :9200' // SSL to IP + Port
2222];
2323$client = ClientBuilder::create() // Instantiate a new ClientBuilder
2424 ->setHosts($hosts) // Set the hosts
@@ -34,7 +34,7 @@ $hosts = [
3434 'mydomain.server.com:9201', // Domain + Port
3535 'mydomain2.server.com', // Just Domain
3636 'https://localhost', // SSL to localhost
37- 'https://192.168.1.3 :9200' // SSL to IP + Port
37+ 'https://192.0.2.0 :9200' // SSL to IP + Port
3838];
3939$clientBuilder = ClientBuilder::create(); // Instantiate a new ClientBuilder
4040$clientBuilder->setHosts($hosts); // Set the hosts
0 commit comments