Skip to content

Commit 47b4e0c

Browse files
authored
add nixos ping executable path (#84997)
* add nixos ping executable path * delete useless /
1 parent 54741bb commit 47b4e0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/Common/src/System/Net/NetworkInformation/UnixCommandLinePing.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace System.Net.NetworkInformation
99
{
1010
internal static class UnixCommandLinePing
1111
{
12-
// Ubuntu has ping under /bin, OSX under /sbin, ArchLinux under /usr/bin, Android under /system/bin.
13-
private static readonly string[] s_binFolders = { "/bin/", "/sbin/", "/usr/bin/", "/system/bin" };
12+
// Ubuntu has ping under /bin, OSX under /sbin, ArchLinux under /usr/bin, Android under /system/bin, NixOS under /run/current-system/sw/bin.
13+
private static readonly string[] s_binFolders = { "/bin", "/sbin", "/usr/bin", "/system/bin", "/run/current-system/sw/bin" };
1414
private const string s_ipv4PingFile = "ping";
1515
private const string s_ipv6PingFile = "ping6";
1616

0 commit comments

Comments
 (0)