mirror of
https://github.com/openziti/zrok.git
synced 2025-06-06 18:06:43 +02:00
parent
1528025863
commit
2bcad71037
@ -186,14 +186,14 @@ func (self *httpBackendCommand) run(_ *cobra.Command, args []string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *httpBackendCommand) destroy(id string, cfg *backend.Config, zrok *rest_client_zrok.Zrok, auth runtime.ClientAuthInfoWriter) {
|
func (self *httpBackendCommand) destroy(id string, cfg *backend.Config, zrok *rest_client_zrok.Zrok, auth runtime.ClientAuthInfoWriter) {
|
||||||
logrus.Infof("shutting down '%v'", cfg.Service)
|
logrus.Debugf("shutting down '%v'", cfg.Service)
|
||||||
req := tunnel.NewUntunnelParams()
|
req := tunnel.NewUntunnelParams()
|
||||||
req.Body = &rest_model_zrok.UntunnelRequest{
|
req.Body = &rest_model_zrok.UntunnelRequest{
|
||||||
ZitiIdentityID: id,
|
ZitiIdentityID: id,
|
||||||
Service: cfg.Service,
|
Service: cfg.Service,
|
||||||
}
|
}
|
||||||
if _, err := zrok.Tunnel.Untunnel(req, auth); err == nil {
|
if _, err := zrok.Tunnel.Untunnel(req, auth); err == nil {
|
||||||
logrus.Infof("shutdown complete")
|
logrus.Debugf("shutdown complete")
|
||||||
} else {
|
} else {
|
||||||
logrus.Errorf("error shutting down: %v", err)
|
logrus.Errorf("error shutting down: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user