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