mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 23:14:20 +08:00
added command line and configuration file arguments to choose
the address and port to listen on or connect to. changed the default port and put it in ProtocolTypes.h. the HTTP port is now no longer opened unless the --http argument is supplied or the config file includes it.
This commit is contained in:
@@ -308,6 +308,7 @@ void CHTTPServer::doProcessPostEditMap(
|
||||
|
||||
// convert temporary screen map into a regular map
|
||||
CConfig config;
|
||||
m_server->getConfig(&config);
|
||||
screens.convertTo(config);
|
||||
|
||||
// set new screen map on server
|
||||
@@ -719,6 +720,8 @@ bool CHTTPServer::CScreenArray::convertFrom(
|
||||
void CHTTPServer::CScreenArray::convertTo(
|
||||
CConfig& config) const
|
||||
{
|
||||
config.removeAllScreens();
|
||||
|
||||
// add screens and find smallest box containing all screens
|
||||
SInt32 x0 = m_w, x1 = 0, y0 = m_h, y1 = 0;
|
||||
for (SInt32 y = 0; y < m_h; ++y) {
|
||||
|
||||
Reference in New Issue
Block a user