test: full config surface coverage; remove dead PeerUsesTLS helper

This commit is contained in:
2026-08-14 09:57:39 -04:00
parent 32eff914d5
commit f2a3e34f94
2 changed files with 97 additions and 9 deletions
-9
View File
@@ -172,15 +172,6 @@ func (c *Config) ListenAddr() string {
return fmt.Sprintf(":%d", c.Daemon.Port)
}
// PeerUsesTLS reports whether the given peer should be contacted over TLS.
// A per-peer override wins over the global security.tls setting.
func (c *Config) PeerUsesTLS(p PeerConfig) bool {
if p.TLS {
return true
}
return c.Security.TLS
}
// MaxBodyBytes returns the effective request body size limit, clamped to a
// sane minimum so a zero/negative config value never disables the limit.
func (c *Config) MaxBodyBytes() int64 {