Skip to content

Commit

Permalink
Fix socket test
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin authored Feb 3, 2022
1 parent 447c442 commit 98c2672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bicep.LangServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class CommandLineOptions
public string? Pipe { get; set; }

[Option("socket", Required = false, HelpText = "The TCP port to connect to for LSP communication")]
public short? Socket { get; set; }
public int? Socket { get; set; }

[Option("stdio", Required = false, HelpText = "If set, use stdin/stdout for LSP communication")]
public bool Stdio { get; set; }
Expand Down Expand Up @@ -88,7 +88,7 @@ private static async Task RunServer(CommandLineOptions options, CancellationToke
{
var tcpClient = new TcpClient();

await tcpClient.ConnectAsync(IPAddress.Loopback, port, cancellationToken);
await tcpClient.ConnectAsync(IPAddress.Any, port, cancellationToken);
var tcpStream = tcpClient.GetStream();

server = new(
Expand Down

0 comments on commit 98c2672

Please sign in to comment.