(req: dict)
| 462 | |
| 463 | |
| 464 | def 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 | |
| 475 | def stop_cloudflare_tunnel_internal(req: dict): |
no test coverage detected