Skip to content

Commit 7a2c57c

Browse files
committed
libvncserver: add a destination port client property
...for outgoing/reverse connections.
1 parent 041ea57 commit 7a2c57c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

include/rfb/rfb.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,8 @@ typedef struct _rfbClientRec {
711711
int tightPngDstDataLen;
712712
#endif
713713
#endif
714+
/** Destination port in case of an outgoing/reverse connection */
715+
int destPort;
714716
} rfbClientRec, *rfbClientPtr;
715717

716718
/**

src/libvncserver/rfbserver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ rfbReverseConnection(rfbScreenInfoPtr rfbScreen,
271271

272272
if (cl) {
273273
cl->reverseConnection = TRUE;
274+
cl->destPort = port;
274275
if (!cl->onHold)
275276
rfbStartOnHoldClient(cl);
276277
}

0 commit comments

Comments
 (0)