RegisterToTunnel finds a tunnel proxy kite by asking kontrol then registers itself on proxy. On error, retries forever. On every successful registration, it sends the proxied URL to the registerChan channel. There is no register URL needed because the Tunnel Proxy automatically gets the IP from tunn
()
| 396 | // no register URL needed because the Tunnel Proxy automatically gets the IP |
| 397 | // from tunneling. This is a blocking function. |
| 398 | func (k *Kite) RegisterToTunnel() { |
| 399 | query := &protocol.KontrolQuery{ |
| 400 | Username: k.Config.KontrolUser, |
| 401 | Environment: k.Config.Environment, |
| 402 | Name: "tunnelproxy", |
| 403 | } |
| 404 | |
| 405 | k.RegisterToProxy(nil, query) |
| 406 | } |
| 407 | |
| 408 | // RegisterToProxy is just like RegisterForever but registers the given URL |
| 409 | // to kontrol over a kite-proxy. A Kiteproxy is a reverseproxy that can be used |
nothing calls this directly
no test coverage detected