Skip to content

fix(cli): preserve hostname specified with --api in http request headers#10497

Merged
gammazero merged 3 commits into
masterfrom
feat/cmds/use-hostname
Aug 28, 2024
Merged

fix(cli): preserve hostname specified with --api in http request headers#10497
gammazero merged 3 commits into
masterfrom
feat/cmds/use-hostname

Conversation

@gammazero

@gammazero gammazero commented Aug 28, 2024

Copy link
Copy Markdown
Contributor

Note: It is necessary to keep the call to resolveAddr to check for a resolvable address, otherwise the host is reported as offline when the address should be reported as not resolvable.

Closes #10232

Thank you @softwareplumber for this solution.

- Replaces PR #10233
- Add test to check for hostname in HTTP header
@gammazero gammazero requested a review from a team as a code owner August 28, 2024 16:11
Comment thread docs/changelogs/v0.30.md Outdated
@lidel lidel changed the title Preserve hostname specified with --api in http request headers fix(cli): preserve hostname specified with --api in http request headers Aug 28, 2024
Co-authored-by: Marcin Rataj <lidel@lidel.org>
@gammazero gammazero merged commit 5fe9604 into master Aug 28, 2024
@gammazero gammazero deleted the feat/cmds/use-hostname branch August 28, 2024 17:03
lidel pushed a commit that referenced this pull request Aug 28, 2024
…ers (#10497)

Preserve hostname specified with --api in http request headers

- Replaces PR #10233
- Add test to check for hostname in HTTP header
- Update docs/changelogs/v0.30.md

(cherry picked from commit 5fe9604)
@lidel lidel mentioned this pull request Aug 28, 2024
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't convert the host name specified with --api=/dns4/<domain>/ into an IP address (thus making life easy for reverse proxy)

2 participants