diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-01-04 03:44:07 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-01-04 03:44:07 +0300 |
commit | d549f428cbbd54c49a90f92928e670d373c4a0d9 (patch) | |
tree | b895a216a37483c082af6f20b2d6aef8560db7b3 /src/ipcam_server.py | |
parent | 00de2339b4a61921c4b8789883e5c77b4528a60b (diff) |
config: use get_addr() instead of parse_addr(config[...])
Diffstat (limited to 'src/ipcam_server.py')
-rwxr-xr-x | src/ipcam_server.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ipcam_server.py b/src/ipcam_server.py index 07b216b..3fdf888 100755 --- a/src/ipcam_server.py +++ b/src/ipcam_server.py @@ -10,7 +10,6 @@ import home.telegram.aio as telegram from apscheduler.schedulers.asyncio import AsyncIOScheduler from home.config import config -from home.util import parse_addr from home import http from home.database.sqlite import SQLiteBase from home.camera import util as camutil @@ -507,5 +506,5 @@ if __name__ == '__main__': except KeyError: pass - server = IPCamWebServer(parse_addr(config['server']['listen'])) + server = IPCamWebServer(config.get_addr('server.listen')) server.run() |