ntoa changed to ntop

This commit is contained in:
Vladimir Dubrovin committed 2014-05-12 01:10:53 +04:00
1 parent 7897b009a1
commit ccf606fd9e
11 files changed
+36 -26

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, unsigned l
len = 8 + sprintf((char *)buf + 8, "%.256s", param->hostname);
}
else {
len = 8 + myinet_ntoa(ina, (char *)buf+8);
len = 8 + myinet_ntop(AF_INET, &ina, (char *)buf+8, 256);
}
len += sprintf((char *)buf + len,
":%hu HTTP/1.0\r\nProxy-Connection: keep-alive\r\n", ntohs(port));