mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 16:58:31 +02:00
chore(agent): update submodule and add logging for TCP/UDP stream server startup
This commit is contained in:
@@ -72,9 +72,11 @@ Tips:
|
|||||||
}
|
}
|
||||||
tcpServer := stream.NewTCPServer(t.Context(), tcpListener, caCert.Leaf, srvCert)
|
tcpServer := stream.NewTCPServer(t.Context(), tcpListener, caCert.Leaf, srvCert)
|
||||||
go tcpServer.Start()
|
go tcpServer.Start()
|
||||||
|
log.Info().Int("port", env.AgentStreamPort).Msg("TCP stream server started")
|
||||||
|
|
||||||
udpServer := stream.NewUDPServer(t.Context(), &net.UDPAddr{Port: env.AgentStreamPort}, caCert.Leaf, srvCert)
|
udpServer := stream.NewUDPServer(t.Context(), &net.UDPAddr{Port: env.AgentStreamPort}, caCert.Leaf, srvCert)
|
||||||
go udpServer.Start()
|
go udpServer.Start()
|
||||||
|
log.Info().Int("port", env.AgentStreamPort).Msg("UDP stream server started")
|
||||||
|
|
||||||
if socketproxy.ListenAddr != "" {
|
if socketproxy.ListenAddr != "" {
|
||||||
runtime := strutils.Title(string(env.Runtime))
|
runtime := strutils.Title(string(env.Runtime))
|
||||||
|
|||||||
Reference in New Issue
Block a user