Skip to content

Commit

Permalink
[Android] Fix path to ping on Android API 21-27 (#79076)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrozsival authored Dec 7, 2022
1 parent a94fa06 commit 59d56cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace System.Net.NetworkInformation
{
internal static class UnixCommandLinePing
{
// Ubuntu has ping under /bin, OSX under /sbin, ArchLinux under /usr/bin.
private static readonly string[] s_binFolders = { "/bin/", "/sbin/", "/usr/bin/" };
// Ubuntu has ping under /bin, OSX under /sbin, ArchLinux under /usr/bin, Android under /system/bin.
private static readonly string[] s_binFolders = { "/bin/", "/sbin/", "/usr/bin/", "/system/bin" };
private const string s_ipv4PingFile = "ping";
private const string s_ipv6PingFile = "ping6";

Expand Down

0 comments on commit 59d56cc

Please sign in to comment.