The change to read it each time left the constructor storing the address itself, so the file read each time was one named 10.0.0.161. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
86cfb82f42
commit
77fb48ba32
2 files changed
+9
-1
No files matched your search
@@ -46,7 +46,7 @@ func newControlPlaneProbe(st *store.DB, listen string) *controlPlaneProbe {
|
||||
self, _ := os.Hostname()
|
||||
return &controlPlaneProbe{st: st, self: self,
|
||||
leaderURL: func(host string) string { return "http://" + net.JoinHostPort(host, port) + "/leader" },
|
||||
floating: floatingAddress(floatingPath),
|
||||
floating: floatingPath,
|
||||
client: &http.Client{Timeout: time.Second}}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user