Skip to content
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

feat: save local and remote addr #9

Merged
merged 4 commits into from
Nov 22, 2024
Merged

feat: save local and remote addr #9

merged 4 commits into from
Nov 22, 2024

Conversation

bassosimone
Copy link
Member

This changeset implements saving the local and remote addr for all the transports we support, improving data quality.

The changes should be obvious for all protocols but DoH, for which we introduced a lower-level mechanism to collect this info, and namely the HTTPClientDo function, opening up the possibility of advanced customization code to create a connection on the fly. The previous mechanism using HTTPClient is still working as intended.

Another minor change is refactoring the structured logging code inside the slog.go and slog_test.go files.

This changeset implements saving the local and remote addr for
all the transports we support, improving data quality.

The changes should be obvious for all protocols but DoH, for which
we introduced a lower-level mechanism to collect this info, and namely
the HTTPClientDo function, opening up the possibility of advanced
customization code to create a connection on the fly. The previous
mechanism using HTTPClient is still working as intended.

Another minor change is refactoring the structured logging code
inside the slog.go and slog_test.go files.
dohttps.go Outdated Show resolved Hide resolved
@bassosimone bassosimone merged commit 36a27f8 into main Nov 22, 2024
1 check passed
@bassosimone bassosimone deleted the feat/real_addrs branch November 22, 2024 07:51
bassosimone added a commit to rbmk-project/rbmk-project.github.io that referenced this pull request Nov 22, 2024
bassosimone added a commit to rbmk-project/rbmk-project.github.io that referenced this pull request Nov 22, 2024
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.

1 participant