Bump reef to v0.1.11; rename sandbar edgeHost helper to avoid clash with expose
CI / test (push) Failing after 4m1s
Release / release (push) Failing after 3m54s

This commit is contained in:
Veillax committed 2026-10-27 17:10:58 -06:00
1 parent 5fdeff012c
commit 0f17659962
3 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -55,10 +55,10 @@ type monitorSpec struct {
Expect string
}
// edgeHost is the address visitors reach a resource's edge on: the address it is
// sandbarEdgeHost is the address visitors reach a resource's edge on: the address it is
// bound to, else the first public address the edge reported, else the host of its
// tunnel endpoint.
func edgeHost(e *model.Edge, bind string) string {
func sandbarEdgeHost(e *model.Edge, bind string) string {
if ip := net.ParseIP(bind); ip != nil && !ip.IsUnspecified() {
return bind
}
@@ -101,7 +101,7 @@ func (s *Server) monitorFor(m *model.Mapping) (monitorSpec, bool) {
return monitorSpec{}, false
}
if host == "" {
if host = edgeHost(e, m.BindIP); host == "" {
if host = sandbarEdgeHost(e, m.BindIP); host == "" {
return monitorSpec{}, false
}
}