From bce55f429b7b297cae1e706e3f6fce654de155c0 Mon Sep 17 00:00:00 2001 From: neil Date: Fri, 11 Mar 2016 22:17:35 +0800 Subject: [PATCH] graceful --- le.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/le.sh b/le.sh index d4315155..5853cff6 100755 --- a/le.sh +++ b/le.sh @@ -342,15 +342,15 @@ _startserver() { _NC="nc -q 1 -l" nchelp="$(nc -h 2>&1)" + #centos if echo "$nchelp" | grep "nmap.org/ncat" >/dev/null ; then _NC="nc -l" fi - if echo "$nchelp" | grep "--version" >/dev/null ; then - ncver="$(nc --version)" - if echo "$ncver" | grep "http://www.deepspace6.net" > /dev/null ; then - _NC="$_NC -p" - fi + #debian + ncver="$(nc --version 2>&1)" + if echo "$ncver" | grep "http://www.deepspace6.net" > /dev/null ; then + _NC="$_NC -p" fi _debug nc "$_NC"