mirror of
https://github.com/3proxy/3proxy.git
synced 2025-04-21 19:52:08 +08:00
name resolution bugfixes
This commit is contained in:
parent
f70e4adf47
commit
7acf3cc4ed
@ -28,16 +28,16 @@ TYPECOMMAND = type
|
|||||||
COMPATLIBS =
|
COMPATLIBS =
|
||||||
MAKEFILE = Makefile.msvc
|
MAKEFILE = Makefile.msvc
|
||||||
PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin lastFripper FilePlugin
|
PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin lastFripper FilePlugin
|
||||||
VERFILE = 3proxyres.obj $(VERFILE)
|
VERFILE = $(VERFILE)
|
||||||
|
|
||||||
|
#../3proxy.res:
|
||||||
|
# rc /fo../3proxy.res ../3proxy.rc
|
||||||
|
|
||||||
|
#3proxyres.obj: ../3proxy.res
|
||||||
|
# cvtres /out:3proxyres.obj /MACHINE:I386 ../3proxy.res
|
||||||
|
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
|
||||||
../3proxy.res:
|
|
||||||
rc /fo../3proxy.res ../3proxy.rc
|
|
||||||
|
|
||||||
3proxyres.obj: ../3proxy.res
|
|
||||||
cvtres /out:3proxyres.obj /MACHINE:X86 ../3proxy.res
|
|
||||||
|
|
||||||
allplugins:
|
allplugins:
|
||||||
for /D %%i in ($(PLUGINS)) do (copy Makefile plugins\%%i && copy Makefile.var plugins\%%i && cd plugins\%%i && nmake && del *.obj *.idb &&cd ..\..)
|
for /D %%i in ($(PLUGINS)) do (copy Makefile plugins\%%i && copy Makefile.var plugins\%%i && cd plugins\%%i && nmake && del *.obj *.idb &&cd ..\..)
|
||||||
|
|
@ -28,16 +28,16 @@ TYPECOMMAND = type
|
|||||||
COMPATLIBS =
|
COMPATLIBS =
|
||||||
MAKEFILE = Makefile.msvc64
|
MAKEFILE = Makefile.msvc64
|
||||||
PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin
|
PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin
|
||||||
VERFILE = 3proxyres.obj $(VERFILE)
|
VERFILE = $(VERFILE)
|
||||||
|
|
||||||
|
#../3proxy.res:
|
||||||
|
# rc /fo../3proxy.res ../3proxy.rc
|
||||||
|
|
||||||
|
#3proxyres.obj: ../3proxy.res
|
||||||
|
# cvtres /out:3proxyres.obj /MACHINE:X64 ../3proxy.res
|
||||||
|
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
|
||||||
../3proxy.res:
|
|
||||||
rc /fo../3proxy.res ../3proxy.rc
|
|
||||||
|
|
||||||
3proxyres.obj: ../3proxy.res
|
|
||||||
cvtres /out:3proxyres.obj /MACHINE:X64 ../3proxy.res
|
|
||||||
|
|
||||||
allplugins:
|
allplugins:
|
||||||
for /D %%i in ($(PLUGINS)) do (copy Makefile plugins\%%i && copy Makefile.var plugins\%%i && cd plugins\%%i && nmake && del *.obj *.idb &&cd ..\..)
|
for /D %%i in ($(PLUGINS)) do (copy Makefile plugins\%%i && copy Makefile.var plugins\%%i && cd plugins\%%i && nmake && del *.obj *.idb &&cd ..\..)
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ int ceparseargs(const char *str){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int parsehostname(char *hostname, struct clientparam *param, unsigned short port){
|
int parsehostname(char *hostname, struct clientparam *param, unsigned short port){
|
||||||
char *sp,*se;
|
char *sp=NULL,*se=NULL;
|
||||||
|
|
||||||
if(!hostname || !*hostname)return 1;
|
if(!hostname || !*hostname)return 1;
|
||||||
if(*hostname == '[') se=strchr(hostname, ']');
|
if(*hostname == '[') se=strchr(hostname, ']');
|
||||||
@ -228,10 +228,10 @@ int parsehostname(char *hostname, struct clientparam *param, unsigned short port
|
|||||||
}
|
}
|
||||||
if(sp){
|
if(sp){
|
||||||
port = atoi(sp+1);
|
port = atoi(sp+1);
|
||||||
*sp = ':';
|
|
||||||
}
|
}
|
||||||
if(se) *se = ']';
|
|
||||||
getip46(param->srv->family, param->hostname + (se!=0), (struct sockaddr *)¶m->req);
|
getip46(param->srv->family, param->hostname + (se!=0), (struct sockaddr *)¶m->req);
|
||||||
|
if(se) *se = ']';
|
||||||
|
if(sp) *sp = ':';
|
||||||
*SAPORT(¶m->req) = htons(port);
|
*SAPORT(¶m->req) = htons(port);
|
||||||
memset(¶m->sinsr, 0, sizeof(param->sinsr));
|
memset(¶m->sinsr, 0, sizeof(param->sinsr));
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#define VERSION "3proxy-0.8b-devel"
|
#define VERSION "3proxy-0.8b-devel"
|
||||||
#define BUILDDATE "141103212413"
|
#define BUILDDATE "141103221444"
|
||||||
|
Loading…
Reference in New Issue
Block a user