diff -Nuar ppp-2.4.7/chat/Makefile.linux ppp-2.4.7-fixed/chat/Makefile.linux --- ppp-2.4.7/chat/Makefile.linux 2014-08-09 20:31:39.000000000 +0800 +++ ppp-2.4.7-fixed/chat/Makefile.linux 2019-08-02 12:47:14.580689353 +0800 @@ -21,7 +21,7 @@ $(CC) -o chat chat.o chat.o: chat.c - $(CC) -c $(CFLAGS) -o chat.o chat.c + $(CC) -c $(CFLAGS) -static -o chat.o chat.c install: chat mkdir -p $(BINDIR) $(MANDIR) diff -Nuar ppp-2.4.7/pppd/auth.c ppp-2.4.7-fixed/pppd/auth.c --- ppp-2.4.7/pppd/auth.c 2014-08-09 20:31:39.000000000 +0800 +++ ppp-2.4.7-fixed/pppd/auth.c 2019-08-02 12:48:41.600691022 +0800 @@ -1322,7 +1322,8 @@ int hadchap; hadchap = -1; - ao->neg_upap = !refuse_pap && (passwd[0] != 0 || get_pap_passwd(NULL)); + /* modify by guowenxue, add don't set passwd support */ + ao->neg_upap = !refuse_pap; // && (passwd[0] != 0 || get_pap_passwd(NULL)); ao->neg_chap = (!refuse_chap || !refuse_mschap || !refuse_mschap_v2) && (passwd[0] != 0 || (hadchap = have_chap_secret(user, (explicit_remote? remote_name: diff -Nuar ppp-2.4.7/pppd/Makefile.linux ppp-2.4.7-fixed/pppd/Makefile.linux --- ppp-2.4.7/pppd/Makefile.linux 2014-08-09 20:31:39.000000000 +0800 +++ ppp-2.4.7-fixed/pppd/Makefile.linux 2019-08-02 12:48:18.064690571 +0800 @@ -43,12 +43,12 @@ #MSLANMAN=y # Uncomment the next line to include support for MPPE. CHAPMS (above) must # also be enabled. Also, edit plugins/radius/Makefile.linux. -MPPE=y +#MPPE=y # Uncomment the next line to include support for PPP packet filtering. # This requires that the libpcap library and headers be installed # and that the kernel driver support PPP packet filtering. -FILTER=y +#FILTER=y # Uncomment the next line to enable multilink PPP (enabled by default) # Linux distributions: Please leave multilink ENABLED in your builds @@ -62,10 +62,10 @@ HAS_SHADOW=y #USE_PAM=y -HAVE_INET6=y +#HAVE_INET6=y # Enable plugins -PLUGIN=y +#PLUGIN=y # Enable Microsoft proprietary Callback Control Protocol #CBCP=y