瀏覽代碼

Only rebind web server on host/port changes

master
JustAnotherArchivist 2 年之前
父節點
當前提交
69e9daddec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      http2irc.py

+ 1
- 1
http2irc.py 查看文件

@@ -983,7 +983,7 @@ class WebServer:
map_['moduleargs'],
map_['overlongmode']
) for map_ in config['maps'].values()}
needRebind = self.config['web'] != config['web']
needRebind = (self.config['web']['host'], self.config['web']['port']) != (config['web']['host'], config['web']['port'])
self.config = config
if needRebind:
self._configChanged.set()


Loading…
取消
儲存