Skip to content

Commit

Permalink
Fix "Fix reloading of tls.certificate_path, tls.key_path and tls.ech.…
Browse files Browse the repository at this point in the history
…key_path"
  • Loading branch information
nekohasekai committed Nov 18, 2024
1 parent 1d81996 commit e58b549
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion common/tls/ech_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ func (c *echServerConfig) startWatcher() error {
if err != nil {
return err
}
err = c.watcher.Start()
if err != nil {
return err
}
c.watcher = watcher
return c.watcher.Start()
return nil
}

func (c *echServerConfig) credentialsUpdated(path string) error {
Expand Down
6 changes: 5 additions & 1 deletion common/tls/std_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@ func (c *STDServerConfig) startWatcher() error {
if err != nil {
return err
}
err = c.watcher.Start()
if err != nil {
return err
}
c.watcher = watcher
return c.watcher.Start()
return nil
}

func (c *STDServerConfig) certificateUpdated(path string) error {
Expand Down

0 comments on commit e58b549

Please sign in to comment.