Update PemSHA field for default SSL certificate

This commit is contained in:
Manuel Alejandro de Brito Fontes 2021-01-21 17:27:06 -03:00
parent 08b0ea5629
commit 04e2603ecc
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
4 changed files with 20 additions and 3 deletions

View file

@ -74,6 +74,8 @@ type Configuration struct {
// ConfigurationChecksum contains the particular checksum of a Configuration object
ConfigurationChecksum string `json:"configurationChecksum,omitempty"`
DefaultSSLCertificate *SSLCert `json:"-"`
}
// Backend describes one or more remote server/s (endpoints) associated with a service
@ -125,7 +127,12 @@ type TrafficShapingPolicy struct {
// HashInclude defines if a field should be used or not to calculate the hash
func (s Backend) HashInclude(field string, v interface{}) (bool, error) {
return (field != "Endpoints"), nil
switch field {
case "Endpoints":
return false, nil
default:
return true, nil
}
}
// SessionAffinityConfig describes different affinity configurations for new sessions.