Skip to content

Commit

Permalink
Handle BindAddress as it should. Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanepechard committed Dec 13, 2015
1 parent 326523e commit 218717f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion photobackup_bottle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
This is the only module of PhotoBackup's bottle server.
"""

__version__ = "0.1.1"
__version__ = "0.1.2"
4 changes: 2 additions & 2 deletions photobackup_bottle/photobackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def read_config():
init_config()

# Check if all keys are in the file
keys = ['MediaRoot', 'Password', 'Port', 'PasswordBcrypt']
keys = ['BindAddress', 'MediaRoot', 'Password', 'PasswordBcrypt', 'Port']
for key in keys:
if key not in config['photobackup']:
error("config file incomplete, please regenerate!")
Expand Down Expand Up @@ -154,7 +154,7 @@ def main():
if (arguments['init']):
init_config()
elif (arguments['run']):
run(port=config['Port'])
run(port=config['Port'], host=config['BindAddress'])


if __name__ == '__main__':
Expand Down

0 comments on commit 218717f

Please sign in to comment.