Skip to content

cli.main: use *_args, **_kwargs for create_http_server #3450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/streamlink_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def create_output(plugin):
return out


def create_http_server(host=None, port=0):
def create_http_server(*_args, **_kwargs):
"""Creates a HTTP server listening on a given host and port.

If host is empty, listen on all available interfaces, and if port is 0,
Expand All @@ -131,7 +131,7 @@ def create_http_server(host=None, port=0):

try:
http = HTTPServer()
http.bind(host=host, port=port)
http.bind(*_args, **_kwargs)
except OSError as err:
console.exit("Failed to create HTTP server: {0}", err)

Expand Down