Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/config/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func (conf *ClientConfig) Complete(read bool) {
// Complete proxy
proxy.Complete()
// Check proxy status
if read && len(conf.Start) > 0 {
if read && len(conf.Start) > 0 && !proxy.Disabled {
proxy.Disabled = !lo.Every(conf.Start, proxy.GetAlias())
}
}
Expand Down
10 changes: 10 additions & 0 deletions pkg/config/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ func ClientVisitorFromV1(visitorCfg TypedVisitorConfig) *Proxy {
func clientProxyBaseFromV1(c *v1.ProxyBaseConfig, out *Proxy) {
out.Name = c.Name
out.Type = c.Type
if c.Enabled == nil || *c.Enabled {
out.Disabled = false
} else {
out.Disabled = true
}
out.UseEncryption = c.Transport.UseEncryption
out.UseCompression = c.Transport.UseCompression
out.BandwidthLimitMode = c.Transport.BandwidthLimitMode
Expand Down Expand Up @@ -253,6 +258,11 @@ func clientProxyBaseFromV1(c *v1.ProxyBaseConfig, out *Proxy) {
func clientVisitorBaseFromV1(c *v1.VisitorBaseConfig, out *Proxy) {
out.Name = c.Name
out.Type = c.Type
if c.Enabled == nil || *c.Enabled {
out.Disabled = false
} else {
out.Disabled = true
}
out.Role = "visitor"
out.UseEncryption = c.Transport.UseEncryption
out.UseCompression = c.Transport.UseCompression
Expand Down