diff --git a/kernel/shell.c b/kernel/shell.c index 1e12477f..8ad7bb6f 100644 --- a/kernel/shell.c +++ b/kernel/shell.c @@ -18,7 +18,7 @@ void shell_on_connect(ServerEventArgs* e) void shell_on_disconnect(ServerEventArgs* e) { - kpritnf("connection lost from %s:%d",inet_ntoa(sender->ConnectionsAddr[e->ClientID].sin_addr),ntohs(sender->ConnectionsAddr[e->ClientID].sin_port)); + kpritnf("connection lost from %s:%d",inet_ntoa(srv->ConnectionsAddr[e->ClientID].sin_addr),ntohs(srv->ConnectionsAddr[e->ClientID].sin_port)); } void shell_on_read(ServerEventArgs* e)