aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/Misc.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-02-10 21:11:27 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-02-10 21:11:27 +0100
commit1be1c4a21bb54e60ec60456374d9ef55aaf55e2f (patch)
tree94a554229c0232baad0585aeaef9e354e3f630a8 /nxcomp/Misc.cpp
parent79f218b563f6a4d3b17e92ee85ad242575daf8da (diff)
downloadnx-libs-1be1c4a21bb54e60ec60456374d9ef55aaf55e2f.tar.gz
nx-libs-1be1c4a21bb54e60ec60456374d9ef55aaf55e2f.tar.bz2
nx-libs-1be1c4a21bb54e60ec60456374d9ef55aaf55e2f.zip
Force NX proxy to bind to loopback devices only (loopback option) (220_nxproxy_bind-loopback-only.full+lite.patch).
Diffstat (limited to 'nxcomp/Misc.cpp')
-rw-r--r--nxcomp/Misc.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/nxcomp/Misc.cpp b/nxcomp/Misc.cpp
index 7303c595b..0095eaa74 100644
--- a/nxcomp/Misc.cpp
+++ b/nxcomp/Misc.cpp
@@ -42,6 +42,14 @@
#undef DEBUG
//
+// By default nxproxy binds to all network interfaces, setting
+// DEFAULT_LOOPBACK_BIND to 1 enables binding to the loopback
+// device only.
+//
+
+const int DEFAULT_LOOPBACK_BIND = 0;
+
+//
// TCP port offset applied to any NX port specification.
//
@@ -137,6 +145,8 @@ static const char UsageInfo[] =
\n\
listen=n Local port used for accepting the proxy connection.\n\
\n\
+ loopback=b Bind to the loopback device only.\n\
+\n\
accept=s Name or IP of host that can connect to the proxy.\n\
\n\
connect=s Name or IP of host that the proxy will connect to.\n\