Skip to content

Commit

Permalink
fix: ClientConfig is not registered for MemoryPack
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Apr 8, 2024
1 parent ccf056e commit 7fed358
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/GZCTF/Models/Internal/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Reflection;
using System.Text.Json.Serialization;
using GZCTF.Extensions;
using MemoryPack;
using OpenTelemetry.Exporter;
using IPNetwork = Microsoft.AspNetCore.HttpOverrides.IPNetwork;

Expand Down Expand Up @@ -108,7 +109,8 @@ public class GlobalConfig
/// <summary>
/// 客户端配置
/// </summary>
public class ClientConfig
[MemoryPackable]
public partial class ClientConfig
{
/// <summary>
/// 平台前缀名称
Expand Down Expand Up @@ -185,7 +187,7 @@ public enum ContainerPortMappingType
// Use default to map the container port to a random port on the host
Default,

// Use platform proxy to map the container tcp to wss
// Use platform proxy to map the container tcp to wss
PlatformProxy
}

Expand Down Expand Up @@ -320,4 +322,4 @@ public void ToForwardedHeadersOptions(ForwardedHeadersOptions options)

TrustedProxies?.ForEach(proxy => proxy.ResolveIP().ToList().ForEach(ip => options.KnownProxies.Add(ip)));
}
}
}

0 comments on commit 7fed358

Please sign in to comment.