From ce4dd889d467b33bb2f2d61b4e3594fd0a985f26 Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 18 Jan 2025 22:10:45 -0800 Subject: [PATCH] Hypercorn must be started manually --- server.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/server.py b/server.py index 3113ddb..11accb4 100644 --- a/server.py +++ b/server.py @@ -3,8 +3,6 @@ import asyncio, traceback, socket, ssl, zipfile, uuid, io, os from OpenSSL import crypto from urllib.parse import urlparse, quote from flask import Flask, request, redirect, send_file, Response, make_response -from hypercorn.config import Config -from hypercorn.asyncio import serve from pathlib import Path homefolder = str(Path.home()) try: @@ -260,9 +258,4 @@ def relay(): title = "gemini://" + url except: code += "
" + traceback.format_exc() + "
" - return f'\n{title}{code}' - -# Run the Hypercorn ASGI server -conf = Config() -conf.bind = ["0.0.0.0:2009", "[::]:2009"] -asyncio.run(serve(app, conf)) \ No newline at end of file + return f'\n{title}{code}' \ No newline at end of file