Merge remote-tracking branch 'upstream/v2'
This commit is contained in:
commit
f28580836c
@ -28,5 +28,5 @@ public enum TenantEventTypeEnum
|
||||
/// 删除租户
|
||||
/// </summary>
|
||||
[Description("删除租户")]
|
||||
Delete = 2,
|
||||
Delete = 2,
|
||||
}
|
||||
@ -46,7 +46,7 @@ public class MqttHostedService(IOptions<MqttOptions> mqttOptions) : IHostedServi
|
||||
var options = new MqttServerOptionsBuilder()
|
||||
.WithDefaultEndpoint() // 默认地址127.0.0.1
|
||||
.WithDefaultEndpointPort(_mqttOptions.Port) // 端口号
|
||||
//.WithDefaultEndpointBoundIPAddress(_mqttOptions.IPAddress) // IP地址
|
||||
//.WithDefaultEndpointBoundIPAddress(_mqttOptions.IPAddress) // IP地址
|
||||
.WithConnectionBacklog(_mqttOptions.ConnectionBacklog) // 最大连接数
|
||||
.WithPersistentSessions()
|
||||
.Build();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user