mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-08 15:08:47 +01:00
Add -udpPort
This commit is contained in:
parent
6e52b24992
commit
f8013340ab
@ -699,6 +699,9 @@ WebsocketListener::WebsocketListener(const struct sockaddr *listenaddr,
|
|||||||
pthread_create(&tid, NULL, start_server, NULL);
|
pthread_create(&tid, NULL, start_server, NULL);
|
||||||
|
|
||||||
uint16_t *nport = (uint16_t *) calloc(1, sizeof(uint16_t));
|
uint16_t *nport = (uint16_t *) calloc(1, sizeof(uint16_t));
|
||||||
|
if (rfb::Server::udpPort)
|
||||||
|
*nport = rfb::Server::udpPort;
|
||||||
|
else
|
||||||
*nport = ntohs(sa.u.sin.sin_port);
|
*nport = ntohs(sa.u.sin.sin_port);
|
||||||
pthread_create(&tid, NULL, udpserver, nport);
|
pthread_create(&tid, NULL, udpserver, nport);
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,7 @@ void *udpserver(void *nport) {
|
|||||||
vlog.error("Failed to create WebUDP host");
|
vlog.error("Failed to create WebUDP host");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
vlog.debug("UDP listening on port %u", *(uint16_t *) nport);
|
||||||
|
|
||||||
__sync_bool_compare_and_swap(&host, host, myhost);
|
__sync_bool_compare_and_swap(&host, host, myhost);
|
||||||
|
|
||||||
|
@ -226,6 +226,10 @@ rfb::IntParameter rfb::Server::udpFullFrameFrequency
|
|||||||
("udpFullFrameFrequency",
|
("udpFullFrameFrequency",
|
||||||
"Send a full frame every N frames for clients using UDP. 0 to disable",
|
"Send a full frame every N frames for clients using UDP. 0 to disable",
|
||||||
0, 0, 1000);
|
0, 0, 1000);
|
||||||
|
rfb::IntParameter rfb::Server::udpPort
|
||||||
|
("udpPort",
|
||||||
|
"Which port to use for UDP. Default same as websocket",
|
||||||
|
0, 0, 65535);
|
||||||
|
|
||||||
static void bandwidthPreset() {
|
static void bandwidthPreset() {
|
||||||
rfb::Server::dynamicQualityMin.setParam(2);
|
rfb::Server::dynamicQualityMin.setParam(2);
|
||||||
|
@ -61,6 +61,7 @@ namespace rfb {
|
|||||||
static IntParameter videoArea;
|
static IntParameter videoArea;
|
||||||
static IntParameter videoScaling;
|
static IntParameter videoScaling;
|
||||||
static IntParameter udpFullFrameFrequency;
|
static IntParameter udpFullFrameFrequency;
|
||||||
|
static IntParameter udpPort;
|
||||||
static StringParameter kasmPasswordFile;
|
static StringParameter kasmPasswordFile;
|
||||||
static StringParameter publicIP;
|
static StringParameter publicIP;
|
||||||
static BoolParameter printVideoArea;
|
static BoolParameter printVideoArea;
|
||||||
|
@ -131,6 +131,10 @@ Default unset.
|
|||||||
Send a full frame every N frames for clients using UDP. 0 to disable. Default \fI0\fP.
|
Send a full frame every N frames for clients using UDP. 0 to disable. Default \fI0\fP.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-udpPort \fIport\fP
|
||||||
|
Which port to use for UDP. Default same as websocket.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
.B \-AcceptCutText
|
.B \-AcceptCutText
|
||||||
Accept clipboard updates from clients. Default is on.
|
Accept clipboard updates from clients. Default is on.
|
||||||
.
|
.
|
||||||
|
Loading…
Reference in New Issue
Block a user