Skip to content

Commit fba9997

Browse files
committed
fix: remove version field from singbox transport config
1 parent e1377f3 commit fba9997

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/subscription/singbox.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ def _transport_http(self, config: TCPTransportConfig, path: str, network: str) -
9797
}
9898

9999
if config.header_type == "http" and config.request:
100-
transport.update(config.request)
100+
# Filter out invalid fields for singbox transport
101+
request_config = {k: v for k, v in config.request.items() if k != "version"}
102+
transport.update(request_config)
101103
else:
102104
transport["headers"] = {k: [v] for k, v in config.http_headers.items()} if config.http_headers else {}
103105

0 commit comments

Comments
 (0)