fix: http server listen host
This commit is contained in:
parent
b32e2e29d8
commit
a940fcd236
@ -50,9 +50,8 @@ def run_app():
|
||||
app.run(host=host, port=port)
|
||||
|
||||
|
||||
def StartHTTPServer(_host, _port, _static_path, _xiaomusic):
|
||||
global host, port, static_path, xiaomusic, log
|
||||
host = _host
|
||||
def StartHTTPServer(_port, _static_path, _xiaomusic):
|
||||
global port, static_path, xiaomusic, log
|
||||
port = _port
|
||||
static_path = _static_path
|
||||
xiaomusic = _xiaomusic
|
||||
|
@ -95,7 +95,7 @@ class XiaoMusic:
|
||||
await self._init_data_hardware()
|
||||
session.cookie_jar.update_cookies(self.get_cookie())
|
||||
self.cookie_jar = session.cookie_jar
|
||||
StartHTTPServer(self.hostname, self.port, self.music_path, self)
|
||||
StartHTTPServer(self.port, self.music_path, self)
|
||||
|
||||
async def login_miboy(self, session):
|
||||
account = MiAccount(
|
||||
|
Loading…
Reference in New Issue
Block a user