about summary refs log tree commit diff
path: root/LibMatrix/Homeservers/RemoteHomeServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/Homeservers/RemoteHomeServer.cs')
-rw-r--r--LibMatrix/Homeservers/RemoteHomeServer.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibMatrix/Homeservers/RemoteHomeServer.cs b/LibMatrix/Homeservers/RemoteHomeServer.cs

index 45ecb18..f0b35f9 100644 --- a/LibMatrix/Homeservers/RemoteHomeServer.cs +++ b/LibMatrix/Homeservers/RemoteHomeServer.cs
@@ -16,6 +16,7 @@ public class RemoteHomeserver { proxy = null; ServerNameOrUrl = serverName; WellKnownUris = wellKnownUris; + Proxy = proxy; ClientHttpClient = new MatrixHttpClient { BaseAddress = new Uri(proxy?.TrimEnd('/') ?? wellKnownUris.Client?.TrimEnd('/') ?? throw new InvalidOperationException($"No client URI for {serverName}!")), // Timeout = TimeSpan.FromSeconds(300) // TODO: Re-implement this @@ -29,6 +30,7 @@ public class RemoteHomeserver { private Dictionary<string, object> _profileCache { get; set; } = new(); public string ServerNameOrUrl { get; } + public string? Proxy { get; } [JsonIgnore] public MatrixHttpClient ClientHttpClient { get; set; }