MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / start_cloudflare_tunnel_internal

Function start_cloudflare_tunnel_internal

ui/easydiffusion/server.py:464–472  ·  view source on GitHub ↗
(req: dict)

Source from the content-addressed store, hash-verified

462
463
464def start_cloudflare_tunnel_internal(req: dict):
465 try:
466 cloudflare.start()
467 log.info(f"- Started cloudflare tunnel. Using address: {cloudflare.address}")
468 return JSONResponse({"address": cloudflare.address})
469 except Exception as e:
470 log.error(str(e))
471 log.error(traceback.format_exc())
472 return HTTPException(status_code=500, detail=str(e))
473
474
475def stop_cloudflare_tunnel_internal(req: dict):

Callers 1

start_cloudflare_tunnelFunction · 0.85

Calls 1

startMethod · 0.45

Tested by

no test coverage detected