Skip to content

Commit

Permalink
fix: #62
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed May 18, 2024
1 parent c6de3df commit 37abfd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xiaomusic/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import traceback

import sys
from flask import Flask, request, send_from_directory
from threading import Thread

Expand All @@ -13,6 +14,11 @@
__version__,
)

# 隐藏 flask 启动告警
# https://gist.github.com/jerblack/735b9953ba1ab6234abb43174210d356
cli = sys.modules['flask.cli']
cli.show_server_banner = lambda *x: None

app = Flask(__name__)
host = "0.0.0.0"
port = 8090
Expand Down

0 comments on commit 37abfd9

Please sign in to comment.