Compare commits

...

1 Commits

Author SHA1 Message Date
srevn 10606abf89 fix config hot-reload on macos (#180)
Co-authored-by: srevn <srevn@github>
2025-06-26 09:20:50 -07:00
+2 -2
View File
@@ -144,8 +144,8 @@ func watchConfigFileWithReload(configPath string, reloadChan chan<- *proxy.Proxy
if !ok { if !ok {
return return
} }
// We only care about writes to the specific config file // We only care about writes/creates to the specific config file
if event.Name == configPath && event.Has(fsnotify.Write) { if event.Name == configPath && (event.Has(fsnotify.Write) || event.Has(fsnotify.Create)) {
// Reset or start the debounce timer // Reset or start the debounce timer
if debounceTimer != nil { if debounceTimer != nil {
debounceTimer.Stop() debounceTimer.Stop()