diff --git a/Lagrange.OneBot/Core/Network/Service/ReverseWSService.cs b/Lagrange.OneBot/Core/Network/Service/ReverseWSService.cs index 56947c6d3..1a51f70fe 100644 --- a/Lagrange.OneBot/Core/Network/Service/ReverseWSService.cs +++ b/Lagrange.OneBot/Core/Network/Service/ReverseWSService.cs @@ -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); @@ -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); } -} \ No newline at end of file +}