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