Skip to content

Commit 83c728c

Browse files
Merge pull request #1468 from ketkee-aryamane/fix-invalid-ip-address-for-main-branch
fix invalid IP address
2 parents 013a5c0 + 639e656 commit 83c728c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/reference/host-config.md

Lines changed: 4 additions & 4 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
@@ -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

Comments
 (0)