Skip to content

Commit 64cad07

Browse files
authored
Merge pull request #3296 from openziti/ziti-tunnel-optional-services
stop requiring a list of services to bind; resolves #3295
2 parents 2495d52 + f5f2a0c commit 64cad07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ziti/tunnel/proxy.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ import (
2828

2929
func NewProxyCmd() *cobra.Command {
3030
return &cobra.Command{
31-
Use: "proxy <service-name:port> [sevice-name:port]",
31+
Use: "proxy [service-name:port] [sevice-name:port]",
3232
Short: "Run in 'proxy' mode",
33-
Long: "The 'proxy' intercept mode creates a network listener for each service that is intercepted.",
34-
Args: cobra.MinimumNArgs(1),
33+
Long: "The 'proxy' intercept mode creates a network listener for each service that is intercepted. Service:port pairs are optional - when none are provided, proxy listeners will be created dynamically for dialable services with proxy.v1 configurations.",
3534
RunE: runProxy,
3635
PostRun: rootPostRun,
3736
}

ziti/tunnel/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ func startIdentity(cmd *cobra.Command, serviceListenerGroup *intercept.ServiceLi
190190
entities.InterceptV1,
191191
entities.HostConfigV1,
192192
entities.HostConfigV2,
193+
entities.ProxyV1,
193194
}
194195

195196
zitiCfg.MaxControlConnections = uint32(maxControlConnections)

0 commit comments

Comments
 (0)