diff options
author | Ian Moffett <ian@osmora.org> | 2025-02-25 20:17:13 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-02-25 20:21:27 -0500 |
commit | ed33f4e1c82fb2c21e0b60f457d1e3404be34980 (patch) | |
tree | f75f14efdf654f81dfe566fc49295e340c486a78 /lib/libostp/server.c | |
parent | 833f064b8f4ee30b9f46bba654a99411cd6866d3 (diff) |
spec: Add initial P2P sourcesp2p
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libostp/server.c')
-rw-r--r-- | lib/libostp/server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libostp/server.c b/lib/libostp/server.c index 794eda0..61e89f7 100644 --- a/lib/libostp/server.c +++ b/lib/libostp/server.c @@ -199,6 +199,7 @@ listener_poll(struct ostp_listener *lp) ++lp->client_count; ip = inet_ntoa(caddr.sin_addr); + memcpy(c->host, ip, strlen(ip) + 1); printf("Incoming connection from %s\n", ip); handle_client(&caddr, c, lp); break; |