mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-26 23:59:41 +08:00
ntoa changed to ntop
This commit is contained in:
1 parent
7897b009a1
commit
ccf606fd9e
11 files changed
+36
-26
No files matched your search
+1
-1
@@ -77,7 +77,7 @@ static void pr_sa(struct node *node, CBFUNC cbf, void*cb){
|
||||
if(node->value)return pr_ip(node, &((struct sockaddr_in *)node->value)->sin_addr.s_addr)
|
||||
#else
|
||||
char buf[64];
|
||||
buf[0] = '['
|
||||
buf[0] = '[';
|
||||
buf[1] = 0;
|
||||
inet_ntop(*SAFAMILY(node->value), node->value, buf+1, sizeof(buf)-10);
|
||||
sprintf(buf + strlen(buf), "]:hu", (unsigned short)*SAPORT(node->value));
|
||||
|
||||
Reference in new issue
Block a user