summaryrefslogtreecommitdiffstats
path: root/libvncserver/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/main.c')
-rw-r--r--libvncserver/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c
index cded456..ee5af4a 100644
--- a/libvncserver/main.c
+++ b/libvncserver/main.c
@@ -836,9 +836,10 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv,
screen->handleEventsEagerly = FALSE;
- /* Emulate UltraVNC Server by default */
- screen->protocolMajorVersion = 3;
- screen->protocolMinorVersion = 6;
+ screen->protocolMajorVersion = rfbProtocolMajorVersion;
+ screen->protocolMinorVersion = rfbProtocolMinorVersion;
+
+ screen->permitFileTransfer = FALSE;
if(!rfbProcessArguments(screen,argc,argv)) {
free(screen);