static int keypadyofs = 0;
static int keypadgap = 0;
static int port = 5900;
+static int httpPort = 5800;
static unsigned char framer = 0;
static unsigned char frameg = 0;
static unsigned char frameb = 0;
if (cfg_number(Section, "Port", 5900, 1, 65535, &port) < 1) {
info("[DRV_VNC] no '%s.Port' entry from %s using default %d", Section, cfg_source(), port);
}
+ if (cfg_number(Section, "HttpPort", 5800, 1, 65535, &httpPort) < 1) {
+ info("[DRV_VNC] no '%s.HttpPort' entry from %s using default %d", Section, cfg_source(), httpPort);
+ }
if (cfg_number(Section, "Maxfps", -1, -1, 512, &maxfps) < 1) {
info("[DRV_VNC] no '%s.Maxfps' entry from %s using default %d", Section, cfg_source(), maxfps);
}
if (javaClassFiles != NULL) {
server->httpDir = javaClassFiles;
server->httpEnableProxyConnect = TRUE;
+ server->httpPort = httpPort;
}
/* Initialize the server */
rfbInitServer(server);