diff options
Diffstat (limited to 'custodia')
-rwxr-xr-x | custodia/custodia | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/custodia/custodia b/custodia/custodia index 4114a4f..2c1ccd1 100755 --- a/custodia/custodia +++ b/custodia/custodia @@ -101,6 +101,9 @@ if __name__ == '__main__': cfgfile = source_config() config = parse_config(cfgfile) - address = os.path.join(os.getcwd(), 'server_socket') + if 'server_socket' in config: + address = config['server_socket'] + else: + address = os.path.join(os.getcwd(), 'server_socket') httpd = LocalHTTPServer(address, config) httpd.serve() |