|
@@ -11,7 +11,7 @@ from starlette.middleware.sessions import SessionMiddleware
|
|
from starlette.responses import JSONResponse
|
|
from starlette.responses import JSONResponse
|
|
|
|
|
|
recent_value = pyperclip.paste()
|
|
recent_value = pyperclip.paste()
|
|
-r = redis.StrictRedis(host='localhost', port=6379, db=0)
|
|
|
|
|
|
+r = redis.StrictRedis(host='127.0.0.1', port=6379, db=0)
|
|
|
|
|
|
|
|
|
|
def clipboard_loop(interval):
|
|
def clipboard_loop(interval):
|
|
@@ -52,4 +52,4 @@ def validation_exception_handler(request, exc):
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
new_thread = threading.Thread(target=clipboard_loop, args=(0.5,))
|
|
new_thread = threading.Thread(target=clipboard_loop, args=(0.5,))
|
|
new_thread.start()
|
|
new_thread.start()
|
|
- uvicorn.run(app='readClient:app', host="127.0.0.1", port=8000)
|
|
|
|
|
|
+ uvicorn.run(app='readClient:app', host="0.0.0.0", port=8000)
|