mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:08:31 +02:00
correcting some behaviors for $DOCKER_HOST, now uses container's private IP instead of localhost
This commit is contained in:
@@ -7,10 +7,12 @@ import (
|
||||
"github.com/yusing/go-proxy/internal/common"
|
||||
)
|
||||
|
||||
var configDirWatcher *dirWatcher
|
||||
var configDirWatcherMu sync.Mutex
|
||||
var (
|
||||
configDirWatcher *DirWatcher
|
||||
configDirWatcherMu sync.Mutex
|
||||
)
|
||||
|
||||
// create a new file watcher for file under ConfigBasePath
|
||||
// create a new file watcher for file under ConfigBasePath.
|
||||
func NewConfigFileWatcher(filename string) Watcher {
|
||||
configDirWatcherMu.Lock()
|
||||
defer configDirWatcherMu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user