mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-20 00:03:53 +01:00
feat(agent/stream): remove STREAM_PORT and use tcp multiplexing on the same port
This commit is contained in:
@@ -46,10 +46,9 @@ func NewAgentHandler() http.Handler {
|
||||
mux.HandleFunc(agent.EndpointProxyHTTP+"/{path...}", ProxyHTTP)
|
||||
mux.HandleFunc(agent.EndpointInfo, func(w http.ResponseWriter, r *http.Request) {
|
||||
agentInfo := agent.AgentInfo{
|
||||
Version: version.Get(),
|
||||
Name: env.AgentName,
|
||||
Runtime: env.Runtime,
|
||||
StreamPort: env.AgentStreamPort,
|
||||
Version: version.Get(),
|
||||
Name: env.AgentName,
|
||||
Runtime: env.Runtime,
|
||||
}
|
||||
sonic.ConfigDefault.NewEncoder(w).Encode(agentInfo)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user