Skip to content

Commit

Permalink
Fix for #4445 - do not advertise pkeyauth on Mac, Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bgavrilMS committed Dec 5, 2023
1 parent 0eecb41 commit a29da65
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public static bool CanOSPerformPKeyAuth()
#if NET_CORE || NET6_WIN || DESKTOP || NETSTANDARD
try
{
// No support on Mac or Linux
if (!DesktopOsHelper.IsWindows())
return false;

return !DesktopOsHelper.IsWin10OrServerEquivalent();
}
catch (DllNotFoundException)
Expand Down

0 comments on commit a29da65

Please sign in to comment.