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)
|
app.run(host=host, port=port)
|
||||||
|
|
||||||
|
|
||||||
def StartHTTPServer(_host, _port, _static_path, _xiaomusic):
|
def StartHTTPServer(_port, _static_path, _xiaomusic):
|
||||||
global host, port, static_path, xiaomusic, log
|
global port, static_path, xiaomusic, log
|
||||||
host = _host
|
|
||||||
port = _port
|
port = _port
|
||||||
static_path = _static_path
|
static_path = _static_path
|
||||||
xiaomusic = _xiaomusic
|
xiaomusic = _xiaomusic
|
||||||
|
@ -95,7 +95,7 @@ class XiaoMusic:
|
|||||||
await self._init_data_hardware()
|
await self._init_data_hardware()
|
||||||
session.cookie_jar.update_cookies(self.get_cookie())
|
session.cookie_jar.update_cookies(self.get_cookie())
|
||||||
self.cookie_jar = session.cookie_jar
|
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):
|
async def login_miboy(self, session):
|
||||||
account = MiAccount(
|
account = MiAccount(
|
||||||
|
Loading…
Reference in New Issue
Block a user