mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
fix the compilation warning
This commit is contained in:
parent
cb9931fe11
commit
d529d91736
@ -297,7 +297,7 @@ int parsehostname(char *hostname, struct clientparam *param, unsigned short port
|
|||||||
|
|
||||||
if(!hostname || !*hostname)return 2;
|
if(!hostname || !*hostname)return 2;
|
||||||
if(*hostname == '[') se=strchr(hostname, ']');
|
if(*hostname == '[') se=strchr(hostname, ']');
|
||||||
if (sp = strchr(se?se:hostname, ':')) {
|
if ((sp = strchr(se?se:hostname, ':'))) {
|
||||||
if(strchr(sp+1, ':'))sp = NULL;
|
if(strchr(sp+1, ':'))sp = NULL;
|
||||||
else *sp = 0;
|
else *sp = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user