fix: more fixes

This commit is contained in:
fufsob committed 2026-09-16 15:59:25 +00:00
1 parent 32341ba323
commit 65fc4a7915
23 files changed
+207 -146

No files matched your search

+2 -3
View File
@@ -76,9 +76,8 @@ def _dropped(exits, keep):
def _backend_tag(tags, only, prefix=""):
"""The tag `only` has in the backend: as given, prefixed by the XRay wrapper, or the
outbound collapsed into "proxy"."""
for tag in (only, prefix + only, "proxy"):
"""The tag `only` has in the backend: as given, or prefixed by the XRay wrapper."""
for tag in (only, prefix + only):
if tag in tags:
return tag
raise ValueError(f"no outbound {only} in the running config")