Fix OIdentdConfigGenerator double-printing on ssl 161/head
authoresainane <esainane+github@gmail.com>
Sat, 21 Nov 2015 08:38:11 +0000 (21:38 +1300)
committeresainane <esainane+github@gmail.com>
Sat, 21 Nov 2015 08:38:11 +0000 (21:38 +1300)
commita2d52750d5042c2cc2e610a1b9a1bdb0b8666e4b
tree2903410aca537faae000ca00f2d924df108d5158
parentb49c64970b6237fc95f8ca88c8bb6bcf04c251d7
Fix OIdentdConfigGenerator double-printing on ssl

connected() is always connected to socketInitialized().
encrypted() is also connected to socketInitialized() when ssl is enabled.

socketInitialized() fires socketOpen(...) unconditionally, but does not fire socketInitialized(...) if we're using SSL without encryption yet - see line 464.

With socketOpen(...) connected to OIdentdConfigurationGenerator::addSocket, OIdentdConfigurationGenerator writes to .oidentd.conf twice for every connection.

Changing this to have socketInitialized(...) connected instead prevents this duplication.
src/core/corenetwork.cpp