Bump reef to v0.1.11; rename sandbar edgeHost helper to avoid clash with expose
This commit is contained in:
1 parent
5fdeff012c
commit
0f17659962
3 files changed
+6
-6
No files matched your search
+3
-3
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user