Skip to content

Commit

Permalink
Don't bind StashServer to hostname if bind_hostname is false. (#143)
Browse files Browse the repository at this point in the history
This fixes a bug where even if bind_hostname is set to False the StashServer would still attempt to bind to the hostname.
  • Loading branch information
mkruisselbrink authored and jgraham committed Dec 8, 2016
1 parent 6a7de63 commit 35d2dd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion serve/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,11 @@ def main():

setup_logger(config["log_level"])

with stash.StashServer((config["host"], get_port()), authkey=str(uuid.uuid4())):
stash_address = None
if config["bind_hostname"]:
stash_address = (config["host"], get_port())

with stash.StashServer(stash_address, authkey=str(uuid.uuid4())):
with get_ssl_environment(config) as ssl_env:
config_, servers = start(config, ssl_env, build_routes(config["aliases"]), **kwargs)

Expand Down

0 comments on commit 35d2dd6

Please sign in to comment.