mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
print IPv6 address in []
This commit is contained in:
parent
c263428cf6
commit
fa2679555e
@ -457,7 +457,12 @@ int dobuf2(struct clientparam * param, unsigned char * buf, const unsigned char
|
||||
i++;
|
||||
}
|
||||
}
|
||||
else i += myinet_ntop(*SAFAMILY(¶m->sinsr), SAADDR(¶m->sinsr), (char *)buf + i, 64);
|
||||
else {
|
||||
buf[i++] = '[';
|
||||
i += myinet_ntop(*SAFAMILY(¶m->req), SAADDR(¶m->req), (char *)buf + i, 64);
|
||||
buf[i++] = ']';
|
||||
buf[i++] = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'N':
|
||||
|
Loading…
Reference in New Issue
Block a user