Skip to content

Commit 555dc86

Browse files
sapiersapier
sapier
authored and
sapier
committedApr 21, 2014
Add missing ip address to player join log entry
1 parent f202678 commit 555dc86

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/server.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1280,8 +1280,9 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
12801280
SendChatMessage(PEER_ID_INEXISTENT,message);
12811281
}
12821282
}
1283-
1284-
actionstream<<player->getName() <<" joins game. " << std::endl;
1283+
Address addr = getPeerAddress(player->peer_id);
1284+
std::string ip_str = addr.serializeString();
1285+
actionstream<<player->getName() <<" [" << ip_str << "] joins game. " << std::endl;
12851286
/*
12861287
Print out action
12871288
*/

0 commit comments

Comments
 (0)
Please sign in to comment.