Merge pull request #56 from FastTunnel/fix/CurrentProtocol

fix : display currect protocol
This commit is contained in:
Gui.H 2023-01-12 23:34:15 +08:00 committed by GitHub
commit 181c0fba94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ public class LoginHandler : ILoginHandler
logger.LogDebug($"SSH proxy success: {item.RemotePort} => {item.LocalIp}:{item.LocalPort}");
client.AddForward(forwardInfo);
await client.webSocket.SendCmdAsync(MessageType.Log, $" TCP | {server.ServerOption.CurrentValue.WebDomain}:{item.RemotePort} => {item.LocalIp}:{item.LocalPort}", CancellationToken.None);
await client.webSocket.SendCmdAsync(MessageType.Log, $" {item.Protocol} | {server.ServerOption.CurrentValue.WebDomain}:{item.RemotePort} => {item.LocalIp}:{item.LocalPort}", CancellationToken.None);
}
catch (Exception ex)
{