Skip to content

Commit f3ba3ee

Browse files
back-toBilly2011
authored andcommitted
[PATCH] cli.main: use *_args, **_kwargs for create_http_server (streamlink#3450)
use `127.0.0.1` for local `create_http_server()` use `0.0.0.0` for external `create_http_server()` `--player-http` = ***127.0.0.1*** https://streamlink.github.io/cli.html#cmdoption-player-http `--player-continuous-http` = ***127.0.0.1*** https://streamlink.github.io/cli.html#cmdoption-player-continuous-http `--player-external-http` = ***None*** / ***0.0.0.0*** https://streamlink.github.io/cli.html#cmdoption-player-external-http
1 parent e55b4a1 commit f3ba3ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/streamlink_cli/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def create_output(plugin):
123123
return out
124124

125125

126-
def create_http_server(host=None, port=0):
126+
def create_http_server(*_args, **_kwargs):
127127
"""Creates a HTTP server listening on a given host and port.
128128
129129
If host is empty, listen on all available interfaces, and if port is 0,
@@ -132,7 +132,7 @@ def create_http_server(host=None, port=0):
132132

133133
try:
134134
http = HTTPServer()
135-
http.bind(host=host, port=port)
135+
http.bind(*_args, **_kwargs)
136136
except OSError as err:
137137
console.exit("Failed to create HTTP server: {0}", err)
138138

0 commit comments

Comments
 (0)