Skip to content

Commit dac75b6

Browse files
committed
home: imp code & doc
1 parent de9e722 commit dac75b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/home/tls.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ func (m *tlsManager) setConfig(
546546
if newConf.Enabled {
547547
certPath, keyPath = newConf.CertificatePath, newConf.PrivateKeyPath
548548
}
549+
549550
err := m.manager.Set(ctx, aghtls.TLSPair{
550551
CertPath: certPath,
551552
KeyPath: keyPath,
@@ -730,7 +731,8 @@ func validatePorts(
730731
}
731732

732733
// validateCertChain verifies certs using the first as the main one and others
733-
// as intermediate. srvName stands for the expected DNS name.
734+
// as intermediate. srvName stands for the expected DNS name. certs must not
735+
// be empty.
734736
//
735737
// TODO(e.burkov): Pass logger and rootCerts through arguments and remove
736738
// dependency on tlsManager.

0 commit comments

Comments
 (0)