Sfoglia il codice sorgente

Only rebind web server on host/port changes

master
JustAnotherArchivist 2 anni fa
parent
commit
69e9daddec
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      http2irc.py

+ 1
- 1
http2irc.py Vedi File

@@ -983,7 +983,7 @@ class WebServer:
map_['moduleargs'], map_['moduleargs'],
map_['overlongmode'] map_['overlongmode']
) for map_ in config['maps'].values()} ) 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 self.config = config
if needRebind: if needRebind:
self._configChanged.set() self._configChanged.set()


Caricamento…
Annulla
Salva