mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
display listening port in log
This commit is contained in:
parent
d5403f3a5b
commit
3bcfe678ab
@ -843,13 +843,13 @@ int main(int argc, char *argv[])
|
|||||||
else
|
else
|
||||||
fprintf(stderr, "Couldn't write pid file\n");
|
fprintf(stderr, "Couldn't write pid file\n");
|
||||||
|
|
||||||
logmsg("Running IPv%d version",
|
logmsg("Running IPv%d version on port %d",
|
||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
(use_ipv6?6:4)
|
(use_ipv6?6:4)
|
||||||
#else
|
#else
|
||||||
4
|
4
|
||||||
#endif
|
#endif
|
||||||
);
|
, port );
|
||||||
|
|
||||||
/* start accepting connections */
|
/* start accepting connections */
|
||||||
listen(sock, 5);
|
listen(sock, 5);
|
||||||
|
Loading…
Reference in New Issue
Block a user