packages/net/sslh/patches/002-configfile-fix.patch
Mircea Horea IONICĂ 727cb7e6e7 sslh: Add support for external config file
This allows users to use an external config file if required (for
example matching packets based on SNI hostname or REGEX patterns).

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
Signed-off-by: Mircea Horea IONICĂ <mionica@gmail.com>
2017-03-31 22:51:37 +01:00

32 lines
1.1 KiB
Diff

diff --git a/basic.cfg b/basic.cfg
index 54a799c..d938767 100644
--- a/basic.cfg
+++ b/basic.cfg
@@ -1,3 +1,7 @@
+# **** Attention OpenWRT/LEDE Users ****
+# sslh command line arguments override arguments defined in this
+# configuration file (UCI uses command line arguments)
+
# This is a basic configuration file that should provide
# sensible values for "standard" setup.
@@ -14,15 +18,16 @@ pidfile: "/var/run/sslh.pid";
# Change hostname with your external address name.
listen:
(
- { host: "thelonious"; port: "443"; }
+ { host: "0.0.0.0"; port: "443"; },
+ { host: "[::]"; port: "443"; }
);
protocols:
(
{ name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; },
{ name: "openvpn"; host: "localhost"; port: "1194"; },
- { name: "xmpp"; host: "localhost"; port: "5222"; },
- { name: "http"; host: "localhost"; port: "80"; },
+# { name: "xmpp"; host: "localhost"; port: "5222"; },
+# { name: "http"; host: "localhost"; port: "80"; },
{ name: "ssl"; host: "localhost"; port: "443"; log_level: 0; },
{ name: "anyprot"; host: "localhost"; port: "443"; }
);