fix(agent): add omitempty to stream_port in AgentInfo

This commit is contained in:
yusing
2026-01-07 01:06:40 +08:00
parent 920f5b1a58
commit 68c15536bc

View File

@@ -47,7 +47,7 @@ type AgentInfo struct {
Version version.Version `json:"version" swaggertype:"string"`
Name string `json:"name"`
Runtime ContainerRuntime `json:"runtime"`
StreamPort int `json:"stream_port"`
StreamPort int `json:"stream_port,omitempty"`
}
// Deprecated. Replaced by EndpointInfo