Skip to content

Commit e58b549

Browse files
committed
Fix "Fix reloading of tls.certificate_path, tls.key_path and tls.ech.key_path"
1 parent 1d81996 commit e58b549

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

common/tls/ech_server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,12 @@ func (c *echServerConfig) startWatcher() error {
9797
if err != nil {
9898
return err
9999
}
100+
err = c.watcher.Start()
101+
if err != nil {
102+
return err
103+
}
100104
c.watcher = watcher
101-
return c.watcher.Start()
105+
return nil
102106
}
103107

104108
func (c *echServerConfig) credentialsUpdated(path string) error {

common/tls/std_server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@ func (c *STDServerConfig) startWatcher() error {
106106
if err != nil {
107107
return err
108108
}
109+
err = c.watcher.Start()
110+
if err != nil {
111+
return err
112+
}
109113
c.watcher = watcher
110-
return c.watcher.Start()
114+
return nil
111115
}
112116

113117
func (c *STDServerConfig) certificateUpdated(path string) error {

0 commit comments

Comments
 (0)