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:
1 parent
2b29016d5b
commit
b201275fd9
2 files changed
+6
-1
No files matched your search
@@ -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 == "" {
|
||||
|
||||
Reference in new issue
Block a user