mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-28 15:38:05 +02:00
nevermind, add duplicate names
This commit is contained in:
parent
fc5ce02bee
commit
fc8de331ae
2 changed files with 3 additions and 10 deletions
|
@ -633,11 +633,7 @@ func getAllServerNames(cfg *config.Config, addr string) ([]string, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for _, sn := range sns {
|
||||
if !cryptutil.HasCertificateForServerName(certs, sn) {
|
||||
serverNames.Add(sn)
|
||||
}
|
||||
}
|
||||
serverNames.Add(sns...)
|
||||
}
|
||||
|
||||
if addr == cfg.Options.GetGRPCAddr() {
|
||||
|
@ -645,11 +641,7 @@ func getAllServerNames(cfg *config.Config, addr string) ([]string, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for _, sn := range sns {
|
||||
if !cryptutil.HasCertificateForServerName(certs, sn) {
|
||||
serverNames.Add(sn)
|
||||
}
|
||||
}
|
||||
serverNames.Add(sns...)
|
||||
}
|
||||
|
||||
return serverNames.ToSlice(), nil
|
||||
|
|
|
@ -1049,6 +1049,7 @@ func Test_getAllDomains(t *testing.T) {
|
|||
"authenticate.example.com",
|
||||
"b.example.com",
|
||||
"c.example.com",
|
||||
"d.unknown.example.com",
|
||||
}
|
||||
assert.Equal(t, expect, actual)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue