Class ServerAcl
A room's server access control list, m.room.server_acl: which servers may take part in the room.
Inherited Members
Namespace: Uniform.Matrix.Protocol.Server
Assembly: Uniform.Matrix.Protocol.Server.dll
Syntax
public sealed class ServerAcl
Remarks
A server is denied when it is an IP address and allow_ip_literals is false, or when it matches a deny pattern; otherwise it must match an allow pattern. Patterns match the server name without its port, case-insensitively, with * for any characters and ? for one.
Constructors
| Edit this page View SourceServerAcl(JsonObject)
Create the list from the content of an m.room.server_acl event.
Declaration
public ServerAcl(JsonObject content)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonObject | content |
Methods
| Edit this page View SourceIsAllowed(string)
Return whether serverName may take part in the room.
Declaration
public bool IsAllowed(string serverName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | serverName | Server name, with or without a port. |
Returns
| Type | Description |
|---|---|
| bool |