diff --git a/AnyConnect/build/static_ocserv.sh b/AnyConnect/build/static_ocserv.sh index aedb5245..5e8a7342 100644 --- a/AnyConnect/build/static_ocserv.sh +++ b/AnyConnect/build/static_ocserv.sh @@ -157,6 +157,7 @@ cd ocserv #autoreconf -fvi sed -i 's/#define DEFAULT_CONFIG_ENTRIES 96/#define DEFAULT_CONFIG_ENTRIES 200/' src/vpn.h sed -i 's/login_end = OC_LOGIN_END;/&\n\t\tif (ws->req.user_agent_type == AGENT_UNKNOWN) {\n\t\t\tcstp_cork(ws);\n\t\t\tret = (cstp_printf(ws, "HTTP\/1.%u 200 OK\\r\\nContent-Type: text\/plain\\r\\nContent-Length: 0\\r\\n\\r\\n", http_ver) < 0 || cstp_uncork(ws) < 0);\n\t\t\tstr_clear(\&str);\n\t\t\treturn -1;\n\t\t}/' src/worker-auth.c +sed -i 's/case AC_PKT_DPD_OUT:/&\n\t\tws->last_nc_msg = now;/' src/worker-vpn.c sed -i 's/\$LIBS \$LIBEV/\$LIBEV \$LIBS/g' configure CFLAGS="-I$installPrefix/include -ffloat-store -O0 --static" \ LDFLAGS="-L$installPrefix/lib -L$installPrefix/lib64 -static -static-libgcc -static-libstdc++ -s -pthread -lpthread" \