Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
m-expunged committed Nov 1, 2022
1 parent bf23c56 commit e6345bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion GuacamoleSharp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app

EXPOSE 80
EXPOSE 8080

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
Expand Down
2 changes: 2 additions & 0 deletions GuacamoleSharp/Logic/Sockets/GuacdSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public bool Close()

public async Task OpenConnectionAsync(Connection connection)
{
Log.Information("[{Id}] Attempting connection to guacd proxy at: {Hostname}:{Port}", _id, _endpoint.Address, _endpoint.Port);

_socket = new Socket(_endpoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
await _socket.ConnectAsync(_endpoint);
await SendAsync(ProtocolHelper.BuildProtocol("select", connection.Type));
Expand Down
2 changes: 0 additions & 2 deletions GuacamoleSharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

builder.Host.UseSerilog((ctx, lc) => lc
.MinimumLevel.Information()
.MinimumLevel.Override("System", LogEventLevel.Warning)
.MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Console(outputTemplate: outputTemplate));

Expand Down

0 comments on commit e6345bf

Please sign in to comment.