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

hostinfo: use Distro field for distinguishing Windows Server builds #11796

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

dblohm7
Copy link
Member

@dblohm7 dblohm7 commented Apr 18, 2024

Some editions of Windows server share the same build number as their client counterpart; we must use an additional field found in the OS version information to distinguish between them.

Even though "Distro" has Linux connotations, it is the most appropriate hostinfo field. What is Windows Server if not an alternate distribution of Windows? This PR populates Distro with "Server" when applicable.

Fixes #11785

@dblohm7 dblohm7 requested a review from bradfitz April 18, 2024 16:19
Copy link
Member

@bradfitz bradfitz left a comment

Choose a reason for hiding this comment

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

You'll need to make updatedeps first

Some editions of Windows server share the same build number as their
client counterpart; we must use an additional field found in the OS
version information to distinguish between them.

Even though "Distro" has Linux connotations, it is the most appropriate
hostinfo field. What is Windows Server if not an alternate distribution
of Windows? This PR populates Distro with "Server" when applicable.

Fixes #11785

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
@dblohm7 dblohm7 merged commit 7132b78 into main Apr 18, 2024
45 of 46 checks passed
@dblohm7 dblohm7 deleted the aaron/hostinfo_win_server branch April 18, 2024 19:48
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.

Add Windows Server flag to hostinfo
2 participants