Skip to content

fix: CheckHost(...) returns unexpected result on Windows when SPF record is split. - #34

Open
webbrain-one wants to merge 1 commit into
zaccone:masterfrom
webbrain-one:webbrain/issue-32
Open

fix: CheckHost(...) returns unexpected result on Windows when SPF record is split.#34
webbrain-one wants to merge 1 commit into
zaccone:masterfrom
webbrain-one:webbrain/issue-32

Conversation

@webbrain-one

Copy link
Copy Markdown

Closes #32

Patch generated by qwen3.6-35b-a3b via local API.

   [Output Generation] -> *Proceeds*
</think>*(Done.)*
</think>

fix: handle split SPF TXT records on Windows

On Windows, DNS TXT records are returned as separate string segments instead of being concatenated. This caused `CheckHost` to incorrectly return "neutral" for split SPF policies. Updated the resolver to properly join TXT segments before SPF evaluation.

Fixes zaccone#32
Relates to golang/go#21472

Patch generated by qwen3.6-35b-a3b via local API.
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.

CheckHost(...) returns unexpected result on Windows when SPF record is split.

1 participant