Skip to content

Commit

Permalink
Host需要配置包含协议
Browse files Browse the repository at this point in the history
  • Loading branch information
NepPure authored Jan 15, 2024
1 parent edd8d13 commit 176afee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lagrange.OneBot/Core/Network/Service/ReverseWSService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected ClientWebSocket CreateDefaultWebSocket()

protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
string urlstr = $"ws://{_options.Host}:{_options.Port}{_options.Suffix}";
string urlstr = $"{_options.Host}:{_options.Port}{_options.Suffix}";
if (!Uri.TryCreate(urlstr, UriKind.Absolute, out var url))
{
Log.LogInvalidUrl(_logger, Tag, urlstr);
Expand Down Expand Up @@ -167,4 +167,4 @@ private static partial class Log
[LoggerMessage(EventId = 10, Level = LogLevel.Error, Message = "[{tag}] Invalid configuration was detected, url: {url}")]
public static partial void LogInvalidUrl(ILogger logger, string tag, string url);
}
}
}

0 comments on commit 176afee

Please sign in to comment.