Skip to content

Commit

Permalink
added nolimit targets in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Feb 28, 2018
1 parent 9eda3ff commit ac3dd5c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ Note: the performance is mainly limited by the RS code lib.

As a VPN software may contradict with local regulations, I had to introduce an intended restriction in the pre-released binaries: you can only use tinyfecVPN to access your own server.

You can easily get rid of this restriction by compiling the source code by yourself(there is a macro for it). This restriction exits only at server side, only the server side binary needs to be compiled.
You can easily get rid of this restriction by compiling the source code by yourself, take a look at makefile. This restriction exits only at server side, only the server side binary needs to be compiled by yourself.
11 changes: 11 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/tinyvpn_\1/g'` ve
all:git_version
rm -f ${NAME}
${cc_local} -o ${NAME} ${INCLUDE} ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3

debug: git_version
rm -f ${NAME}
${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -Wformat-nonliteral -D MY_DEBUG
Expand Down Expand Up @@ -74,3 +75,13 @@ clean:
git_version:
echo "const char * const gitversion = \"$(shell git rev-parse HEAD)\";" > git_version.h

nolimit_all:
make OPT=-DNOLIMIT
nolimit_cross:
make cross OPT=-DNOLIMIT
nolimit_cross2:
make cross2 OPT=-DNOLIMIT
nolimit_cross3:
make cross2 OPT=-DNOLIMIT
nolimit_release:
make release OPT=-DNOLIMIT
2 changes: 1 addition & 1 deletion tun_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int from_fec_to_normal2(conn_info_t & conn_info,dest_t &dest,char * data,int len
for(int i=0;i<out_n;i++)
{

#ifndef NORES
#ifndef NOLIMIT
if(client_or_server==server_mode)
{
char * tmp_data=out_arr[i];
Expand Down

0 comments on commit ac3dd5c

Please sign in to comment.