From 7227c136d8378fb8e911ffe849a83e53f47681a2 Mon Sep 17 00:00:00 2001 From: bolvan Date: Sun, 13 Aug 2017 13:09:08 +0300 Subject: [PATCH] create_ipset return code fix --- ipset/create_ipset.sh | 1 + tpws/tpws.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ipset/create_ipset.sh b/ipset/create_ipset.sh index 6ec6096..3251c87 100755 --- a/ipset/create_ipset.sh +++ b/ipset/create_ipset.sh @@ -20,6 +20,7 @@ do fi } done +return 0 } create_ipset $ZIPSET $ZIPLIST $ZIPLIST_USER diff --git a/tpws/tpws.c b/tpws/tpws.c index b22e844..529fef8 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -235,6 +235,9 @@ bool handle_epollin(tproxy_conn_t *conn, int *data_transferred) { else { printf("Data block does not look like http request start\n"); + + // this is the only parameter applicable to non-http block (may be https ?) + if (params.split_pos