File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1111import tianxiu2b2t .anyio .streams .proxy as streams_proxy
1212from tianxiu2b2t .anyio import concurrency
1313from tianxiu2b2t .utils import runtime
14+ from tianxiu2b2t .http .asgi import ASGIApplicationBridge , ASGIConfig
1415
1516from . import utils , abc
1617from .logger import logger
@@ -131,9 +132,14 @@ async def serve(
131132):
132133 async with listener :
133134 logger .tinfo ("web.forward.pub_port" , port = pub_port )
134- #if not cfg.bridge_web_application:
135- await listener .serve (pub_handler )
136- #return
135+ if not cfg .bridge_web_application :
136+ await listener .serve (pub_handler )
137+ async with ASGIApplicationBridge (
138+ ASGIConfig (
139+ app ,
140+ )
141+ ) as bridge :
142+ await bridge .serve (listener )
137143
138144async def pub_handler (
139145 sock : streams .BufferedByteStream ,
You can’t perform that action at this time.
0 commit comments