diff --git a/DragaliaAPI/DragaliaAPI/ServiceConfiguration.cs b/DragaliaAPI/DragaliaAPI/ServiceConfiguration.cs index c5fcf4a34..6fa64b550 100644 --- a/DragaliaAPI/DragaliaAPI/ServiceConfiguration.cs +++ b/DragaliaAPI/DragaliaAPI/ServiceConfiguration.cs @@ -161,8 +161,11 @@ IConfiguration configuration services.AddHttpClient( (sp, client) => { - IOptions options = sp.GetRequiredService>(); - client.BaseAddress = new(options.Value.StateManagerUrl); + IOptionsMonitor options = sp.GetRequiredService< + IOptionsMonitor + >(); + + client.BaseAddress = new(options.CurrentValue.StateManagerUrl); } ); services.AddScoped();