diff options
author | Christian Beier <dontmind@freeshell.org> | 2012-02-27 15:19:52 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2012-02-27 15:19:52 +0100 |
commit | e7dfd0a9d66637ff9ee33132a6f0bd07083aec86 (patch) | |
tree | 086805c609eae5ee31d1a64d5c0bcc998d4ea15b /libvncserver/cargs.c | |
parent | 0e74b5db9af7a19ce4fee4bc166040cb3a50108e (diff) | |
download | libtdevnc-e7dfd0a9d66637ff9ee33132a6f0bd07083aec86.tar.gz libtdevnc-e7dfd0a9d66637ff9ee33132a6f0bd07083aec86.zip |
IPv6 support for LibVNCServer, part two: Let the http server listen on IPv6, too.
As done with the RFB sockets, this uses a separate-socket approach as well.
Diffstat (limited to 'libvncserver/cargs.c')
-rw-r--r-- | libvncserver/cargs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libvncserver/cargs.c b/libvncserver/cargs.c index 27ceb97..b9eb02b 100644 --- a/libvncserver/cargs.c +++ b/libvncserver/cargs.c @@ -45,6 +45,9 @@ rfbUsage(void) "instead)\n"); fprintf(stderr, "-httpdir dir-path enable http server using dir-path home\n"); fprintf(stderr, "-httpport portnum use portnum for http connection\n"); +#ifdef LIBVNCSERVER_IPv6 + fprintf(stderr, "-httpportv6 portnum use portnum for IPv6 http connection\n"); +#endif fprintf(stderr, "-enablehttpproxy enable http proxy support\n"); fprintf(stderr, "-progressive height enable progressive updating for slow links\n"); fprintf(stderr, "-listen ipaddr listen for connections only on network interface with\n"); @@ -162,6 +165,14 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[]) return FALSE; } rfbScreen->httpPort = atoi(argv[++i]); +#ifdef LIBVNCSERVER_IPv6 + } else if (strcmp(argv[i], "-httpportv6") == 0) { /* -httpportv6 portnum */ + if (i + 1 >= *argc) { + rfbUsage(); + return FALSE; + } + rfbScreen->http6Port = atoi(argv[++i]); +#endif } else if (strcmp(argv[i], "-enablehttpproxy") == 0) { rfbScreen->httpEnableProxyConnect = TRUE; } else if (strcmp(argv[i], "-progressive") == 0) { /* -httpport portnum */ |