test: full config surface coverage; remove dead PeerUsesTLS helper
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user