aboutsummaryrefslogtreecommitdiffstats
path: root/tests/secureserver.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/secureserver.pl')
-rwxr-xr-xtests/secureserver.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/secureserver.pl b/tests/secureserver.pl
index c897ee5f..969fb17b 100755
--- a/tests/secureserver.pl
+++ b/tests/secureserver.pl
@@ -264,6 +264,11 @@ if($stunnel_version < 400) {
#
if($stunnel_version >= 400) {
$socketopt = "a:SO_REUSEADDR=1";
+ if(($stunnel_version >= 534) && $tstunnel_windows) {
+ # SO_EXCLUSIVEADDRUSE is on by default on Vista or newer,
+ # but does not work together with SO_REUSEADDR being on.
+ $socketopt .= "\nsocket = a:SO_EXCLUSIVEADDRUSE=0";
+ }
$cmd = "$stunnel $conffile ";
$cmd .= ">$logfile 2>&1";
# setup signal handler