mirror of
https://github.com/openziti/zrok.git
synced 2025-02-16 18:20:51 +01:00
no need to update targets when reserved backend mode is 'socks' (#558)
This commit is contained in:
parent
2982e43685
commit
d58779c7e2
@ -93,6 +93,7 @@ func (cmd *shareReservedCommand) run(_ *cobra.Command, args []string) {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if resp.Payload.BackendMode != "socks" {
|
||||||
logrus.Infof("sharing target: '%v'", target)
|
logrus.Infof("sharing target: '%v'", target)
|
||||||
|
|
||||||
if resp.Payload.BackendProxyEndpoint != target {
|
if resp.Payload.BackendProxyEndpoint != target {
|
||||||
@ -111,6 +112,7 @@ func (cmd *shareReservedCommand) run(_ *cobra.Command, args []string) {
|
|||||||
} else {
|
} else {
|
||||||
logrus.Infof("using existing backend proxy endpoint: %v", target)
|
logrus.Infof("using existing backend proxy endpoint: %v", target)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var shareDescription string
|
var shareDescription string
|
||||||
switch resp.Payload.ShareMode {
|
switch resp.Payload.ShareMode {
|
||||||
|
Loading…
Reference in New Issue
Block a user