Skip to content

Commit 25cf4bc

Browse files
Merge pull request #1465 from ketkee-aryamane/fix-invalid-ip-address
[9.1] fix invalid IP address
2 parents c963518 + d2efe1f commit 25cf4bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/reference/host-config.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -29,12 +29,12 @@ Notice that the `ClientBuilder` object allows chaining method calls for brevity.
2929

3030
```php
3131
$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
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

Comments
 (0)