Browse Source

make sure we assign tunnels in the registry

Alan Shreve 12 years ago
parent
commit
4823077f97
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/ngrok/server/registry.go

+ 2 - 0
src/ngrok/server/registry.go

@@ -62,6 +62,8 @@ func (r *TunnelRegistry) Register(url string, t *Tunnel) error {
 		return fmt.Errorf("The tunnel %s is already registered.", url)
 	}
 
+	r.tunnels[url] = t
+
 	return nil
 }