Skip to content

Commit 218717f

Browse files
Handle BindAddress as it should. Fixes #10
1 parent 326523e commit 218717f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

photobackup_bottle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
This is the only module of PhotoBackup's bottle server.
55
"""
66

7-
__version__ = "0.1.1"
7+
__version__ = "0.1.2"

photobackup_bottle/photobackup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def read_config():
6161
init_config()
6262

6363
# Check if all keys are in the file
64-
keys = ['MediaRoot', 'Password', 'Port', 'PasswordBcrypt']
64+
keys = ['BindAddress', 'MediaRoot', 'Password', 'PasswordBcrypt', 'Port']
6565
for key in keys:
6666
if key not in config['photobackup']:
6767
error("config file incomplete, please regenerate!")
@@ -154,7 +154,7 @@ def main():
154154
if (arguments['init']):
155155
init_config()
156156
elif (arguments['run']):
157-
run(port=config['Port'])
157+
run(port=config['Port'], host=config['BindAddress'])
158158

159159

160160
if __name__ == '__main__':

0 commit comments

Comments
 (0)