Browse Source

update readme

main
yggverse 8 months ago
parent
commit
3a1d8aa83b
  1. 8
      README.md

8
README.md

@ -16,7 +16,7 @@ PHP interface for Gemini protocol queries by TLS socket connection @@ -16,7 +16,7 @@ PHP interface for Gemini protocol queries by TLS socket connection
``` php
$request = new \Yggverse\Gemini\Client\Request(
'gemini://betahowto.duckdns.org:1965/archive'
'gemini://yggverse.cities.yesterweb.org:1965/index.gmi'
);
```
@ -26,8 +26,8 @@ For direct connection provide resolved IP as the second argument @@ -26,8 +26,8 @@ For direct connection provide resolved IP as the second argument
``` php
$request = new \Yggverse\Gemini\Client\Request(
'gemini://betahowto.duckdns.org:1965/archive' // target URL
'94.140.114.89' // resolved IP, skip to use system-wide resolver
'gemini://yggverse.cities.yesterweb.org:1965/index.gmi' // target URL
'68.133.1.71' // resolved IP, skip to use system-wide resolver
);
```
@ -37,7 +37,7 @@ Alternatively, use `setResolvedHost` method of `Request` object before `getRespo @@ -37,7 +37,7 @@ Alternatively, use `setResolvedHost` method of `Request` object before `getRespo
``` php
$request->setResolvedHost(
'94.140.114.89'
'68.133.1.71'
)
```

Loading…
Cancel
Save