Skip to content

Commit e195b05

Browse files
committed
fix: add null check for permit_without_stream
1 parent 22ef9f1 commit e195b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/core/hosts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def _prepare_subscription_inbound_data(
136136
multi_mode=gs.multi_mode if gs else False,
137137
idle_timeout=gs.idle_timeout if gs else None,
138138
health_check_timeout=gs.health_check_timeout if gs else None,
139-
permit_without_stream=gs.permit_without_stream if gs else False,
139+
permit_without_stream=gs.permit_without_stream if gs and gs.permit_without_stream is not None else False,
140140
initial_windows_size=gs.initial_windows_size if gs else None,
141141
http_headers=host.http_headers,
142142
random_user_agent=host.random_user_agent,

0 commit comments

Comments
 (0)