summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r--x11vnc/user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c
index 6a6d3b8..09da679 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -1020,8 +1020,8 @@ rfbBool custom_passwd_check(rfbClientPtr cl, const char *response, int len) {
static void handle_one_http_request(void) {
rfbLog("handle_one_http_request: begin.\n");
- if (screen->httpPort == 0) {
- int port = find_free_port(5800, 5850);
+ if (inetd || screen->httpPort == 0) {
+ int port = find_free_port(5800, 5860);
if (port) {
screen->httpPort = port;
} else {