mirror of
https://github.com/nmap/nmap.git
synced 2026-02-10 15:36:33 +00:00
Make ncat-test.pl work on both Windows and *nix without modification;
feel free to revert it if you believe it needs some discussion first. (I find it useful when working from both VM and Linux on a shared directory)
This commit is contained in:
@@ -18,7 +18,6 @@ use strict;
|
||||
|
||||
$| = 1;
|
||||
|
||||
my $NCAT = "../ncat";
|
||||
my $HOST = "127.0.0.1";
|
||||
my $IPV6_ADDR = "::1";
|
||||
my $PORT = 40000;
|
||||
@@ -27,6 +26,14 @@ my $UNIXSOCK = "ncat.unixsock";
|
||||
my $UNIXSOCK_TMP = "ncat.unixsock_tmp";
|
||||
|
||||
my $WIN32 = $^O eq "MSWin32" || $^O eq "cygwin";
|
||||
|
||||
my $NCAT;
|
||||
if ($WIN32) {
|
||||
$NCAT = "../Debug/ncat.exe";
|
||||
} else {
|
||||
$NCAT = "../ncat";
|
||||
}
|
||||
|
||||
my $HAVE_SCTP = !$WIN32;
|
||||
my $HAVE_UNIXSOCK = !$WIN32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user