Skip to content

Commit 5b6bdbe

Browse files
committed
modify netstat parameters
1 parent 93ed9ca commit 5b6bdbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/LLMUnitySetup.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public static int NumServersForPortNetstat(int port)
313313
int num = 0;
314314
try
315315
{
316-
string netstatOutput = RunProcess("netstat", "-lan -p tcp");
316+
string netstatOutput = RunProcess("netstat", "-an -p tcp");
317317
Regex regex = new Regex(@"^.*(?i:tcp).*?[:.](?<LocalPort>\d+)\b\s.*\bLISTEN[ING]*\b", RegexOptions.Multiline);
318318
MatchCollection matches = regex.Matches(netstatOutput);
319319
foreach (Match match in matches)

0 commit comments

Comments
 (0)