mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-03 20:07:36 +03:00
Fix "Fix reloading of tls.certificate_path, tls.key_path and tls.ech.key_path"
This commit is contained in:
parent
1d81996ceb
commit
e58b549d0f
2 changed files with 10 additions and 2 deletions
|
@ -97,8 +97,12 @@ func (c *echServerConfig) startWatcher() error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
err = c.watcher.Start()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
c.watcher = watcher
|
c.watcher = watcher
|
||||||
return c.watcher.Start()
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *echServerConfig) credentialsUpdated(path string) error {
|
func (c *echServerConfig) credentialsUpdated(path string) error {
|
||||||
|
|
|
@ -106,8 +106,12 @@ func (c *STDServerConfig) startWatcher() error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
err = c.watcher.Start()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
c.watcher = watcher
|
c.watcher = watcher
|
||||||
return c.watcher.Start()
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *STDServerConfig) certificateUpdated(path string) error {
|
func (c *STDServerConfig) certificateUpdated(path string) error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue