@@ -13,12 +13,12 @@ This behavior can be changed by using the `setHosts()` method on `ClientBuilder`
13
13
14
14
``` php
15
15
$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
18
18
'mydomain.server.com:9201', // Domain + Port
19
19
'mydomain2.server.com', // Just Domain
20
20
'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
22
22
];
23
23
$client = ClientBuilder::create() // Instantiate a new ClientBuilder
24
24
->setHosts($hosts) // Set the hosts
@@ -29,12 +29,12 @@ Notice that the `ClientBuilder` object allows chaining method calls for brevity.
29
29
30
30
``` php
31
31
$hosts = [
32
- '192.168.1.1 :9200', // IP + Port
33
- '192.168.1.2 ', // Just IP
32
+ '192.0.2.0 :9200', // IP + Port
33
+ '192.0.2.0 ', // Just IP
34
34
'mydomain.server.com:9201', // Domain + Port
35
35
'mydomain2.server.com', // Just Domain
36
36
'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
38
38
];
39
39
$clientBuilder = ClientBuilder::create(); // Instantiate a new ClientBuilder
40
40
$clientBuilder->setHosts($hosts); // Set the hosts
0 commit comments