Skip to content

fix(notify): dial notification targets directly - #461

Merged
BaaRai merged 2 commits into
BaaRai:mainfrom
Coff0xc:fix/notify-direct
Nov 22, 2026
Merged

BaaRai merged 2 commits into
BaaRai:mainfrom
Coff0xc:fix/notify-direct

Conversation

@Coff0xc

@Coff0xc Coff0xc commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Notification HTTP cloned the default transport, which still used HTTP_PROXY. The dial guard then saw the proxy address, so a link-local target could be reached through the proxy. The transport now sets Proxy to nil and connects to the target. go test ./notify/ -run TestNotifyTransportIgnoresEnvironmentProxy passes.

Cloning the default transport kept ProxyFromEnvironment. The loopback guard
then saw the proxy address, so a link-local URL could still be fetched
through that proxy. Notifications now set Proxy to nil and connect directly.
Copilot AI balanced review requested due to automatic review settings November 21, 2026 19:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@BaaRai
BaaRai merged commit d59227c into BaaRai:main Nov 22, 2026
5 checks passed
@BaaRai

BaaRai commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Thanks @Coff0xc, merged. The notification transport now connects directly, so an environment proxy cannot turn the dial guard into a link-local target. The merge commit only brings the branch onto main.

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.

3 participants