mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 05:11:17 +08:00
fix: fallback cannot be unfixed
This commit is contained in:
parent
56fe7d5304
commit
43f21c0b41
@ -60,9 +60,15 @@ func getGroupDelay(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if proxy.(*adapter.Proxy).Type() == C.URLTest {
|
switch proxy.(*adapter.Proxy).Type() {
|
||||||
URLTestGroup := proxy.(*adapter.Proxy).ProxyAdapter.(*outboundgroup.URLTest)
|
case C.URLTest:
|
||||||
URLTestGroup.ForceSet("")
|
if urlTestGroup, ok := proxy.(*adapter.Proxy).ProxyAdapter.(*outboundgroup.URLTest); ok {
|
||||||
|
urlTestGroup.ForceSet("")
|
||||||
|
}
|
||||||
|
case C.Fallback:
|
||||||
|
if fallbackGroup, ok := proxy.(*adapter.Proxy).ProxyAdapter.(*outboundgroup.Fallback); ok {
|
||||||
|
fallbackGroup.ForceSet("")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if proxy.(*adapter.Proxy).Type() != C.Selector {
|
if proxy.(*adapter.Proxy).Type() != C.Selector {
|
||||||
|
Loading…
Reference in New Issue
Block a user