Skip to content

Update examples #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update examples #13

wants to merge 1 commit into from

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Aug 8, 2025

Motivation:

The examples use the '.ipv4(host:)' target to resolve. We renamed this to '.ipv4(address:)' which is more accurate. However, the examples should most likely use '.dns(host:)' with "localhost" rather than the IPv4 address automatically as '.dns(host:)' is more likely to be used in real world applications.

Modifications:

  • Change example clients from using '.ipv4(host: "127.0.0.1")' to
    '.dns(host: "localhost)'.

Result:

Fewer warnings, better examples

Motivation:

The examples use the '.ipv4(host:)' target to resolve. We renamed this
to '.ipv4(address:)' which is more accurate. However, the examples
should most likely use '.dns(host:)' with "localhost" rather than the
IPv4 address automatically as '.dns(host:)' is more likely to be used in
real world applications.

Modifications:

- Change example clients from using '.ipv4(host: "127.0.0.1")' to
  '.dns(host: "localhost)'.

Result:

Fewer warnings, better examples
@glbrntt glbrntt added the semver/none No version bump required. label Aug 8, 2025
@glbrntt glbrntt enabled auto-merge (squash) August 8, 2025 17:19
@glbrntt glbrntt requested a review from gjcairo August 8, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant