Skip to content

Commit acdcd60

Browse files
authored
chore: Adapt the hidden field for proxy groups (#685)
the GUI should not display proxy groups tags where `hidden: true`.
1 parent d8e336e commit acdcd60

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/src/main/golang/native/tunnel/proxies.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,11 @@ func QueryProxyGroupNames(excludeNotSelectable bool) []string {
6868
}
6969

7070
for _, p := range proxies {
71-
if _, ok := p.Adapter().(outboundgroup.ProxyGroup); ok {
71+
if g, ok := p.Adapter().(outboundgroup.ProxyGroup); ok {
7272
if !excludeNotSelectable || p.Type() == C.Selector {
73+
if g.Hidden() {
74+
continue
75+
}
7376
result = append(result, p.Name())
7477
}
7578
}

0 commit comments

Comments
 (0)