refactor(server): enhance server start options and support for proxy protocol

This commit is contained in:
yusing
2025-09-18 17:34:02 +08:00
parent 3aba5a1911
commit 83a69322fa
6 changed files with 80 additions and 16 deletions

View File

@@ -39,5 +39,5 @@ func StartAgentServer(parent task.Parent, opt Options) {
TLSConfig: tlsConfig,
}
server.Start(parent, agentServer, nil, &log.Logger)
server.Start(parent, agentServer, server.WithLogger(&log.Logger))
}