Skip to content

Commit

Permalink
Update static_ocserv.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MoeClub authored Jul 19, 2022
1 parent 430045f commit a652de2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AnyConnect/build/static_ocserv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit a652de2

Please sign in to comment.