mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Print "listening on" as a URL.
This commit is contained in:
parent
58dca3d6b1
commit
4ce6e87748
@ -817,7 +817,8 @@ static void init_sockin(void) {
|
||||
sizeof(struct sockaddr)) == -1)
|
||||
err(1, "bind(port %u)", bindport);
|
||||
|
||||
printf("listening on %s:%u\n", inet_ntoa(addrin.sin_addr), bindport);
|
||||
printf("listening on: http://%s:%u/\n",
|
||||
inet_ntoa(addrin.sin_addr), bindport);
|
||||
|
||||
/* listen on socket */
|
||||
if (listen(sockin, max_connections) == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user