mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-02 06:30:53 +03:00
blockcheck: ipfw from any => from me
This commit is contained in:
parent
089dccf278
commit
04f9959158
@ -277,7 +277,7 @@ pktws_ipt_prepare()
|
|||||||
IPT POSTROUTING -t mangle -p tcp --dport $1 -m mark ! --mark $DESYNC_MARK/$DESYNC_MARK -j NFQUEUE --queue-num $QNUM
|
IPT POSTROUTING -t mangle -p tcp --dport $1 -m mark ! --mark $DESYNC_MARK/$DESYNC_MARK -j NFQUEUE --queue-num $QNUM
|
||||||
;;
|
;;
|
||||||
FreeBSD)
|
FreeBSD)
|
||||||
IPFW_ADD divert $IPFW_DIVERT_PORT tcp from any to any 80,443 out not diverted not sockarg
|
IPFW_ADD divert $IPFW_DIVERT_PORT tcp from me to any 80,443 out not diverted not sockarg
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@ -424,11 +424,9 @@ pktws_check_domain_bypass()
|
|||||||
if pktws_curl_test $1 $3 $s; then
|
if pktws_curl_test $1 $3 $s; then
|
||||||
strategy="${strategy:-$s}"
|
strategy="${strategy:-$s}"
|
||||||
break
|
break
|
||||||
else
|
elif [ "$sec" = 0 ]; then
|
||||||
[ "$sec" = 0 ] && {
|
s="$s --hostcase"
|
||||||
s="$s --hostcase"
|
pktws_curl_test $1 $3 $s && strategy="${strategy:-$s}"
|
||||||
pktws_curl_test $1 $3 $s && strategy="${strategy:-$s}"
|
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user