Take agent_tls.insecure as consent to an agent port without TLS too

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-04 10:11:40 +02:00
1 parent 2b29016d5b
commit b201275fd9
2 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -792,7 +792,8 @@ func agentListenAddr(cfg config.Server) (string, error) {
if cfg.AgentTLS.Enabled() {
return cfg.AgentListen, nil
}
if !cfg.AgentInsecure {
// agent_tls.insecure says the same, in the older place.
if !cfg.AgentInsecure && !cfg.AgentTLS.Insecure {
return "", errAgentInsecure
}
if host, port, err := net.SplitHostPort(cfg.AgentListen); err == nil && host == "" {