add configuiration to bind to specific IP

This commit is contained in:
Jason D. McCormick 2020-06-12 13:16:53 -04:00
parent 815165141c
commit 0cfd041de9
7 changed files with 33 additions and 9 deletions

View file

@ -164,7 +164,9 @@ void CYSFReflector::run()
CNetwork network(m_conf.getNetworkPort(), m_conf.getId(), m_conf.getName(), m_conf.getDescription(), m_conf.getNetworkDebug());
ret = network.open();
const char* bindaddr = m_conf.getNetworkBindAddr().c_str();
ret = network.open(bindaddr);
if (!ret) {
::LogFinalise();
return;