- boost::asio::io_service ioService;
- Server server(ioService, "secret", 1812, "/usr/share/freeradius/dictionary");
- ioService.run();
+ if (!m_server)
+ m_server = std::make_unique<Server>(m_ioContext, m_config.GetSecret(), m_config.GetPort(), m_config.GetDictionaries(), std::move(token), m_logger, m_users, m_config);
+ m_ioContext.run();