Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log the Remote IP for Clients #124

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

domibay-hugo
Copy link

@domibay-hugo domibay-hugo commented Jun 10, 2019

change consistantly $t_client_socket->sockhost() to $t_client_socket->peerhost()
according to official documentation
https://perldoc.perl.org/IO/Socket/INET.html#METHODS

On the Server Side the Value of IO::Socket::INET::sockhost() contains the IP of the Server
while IO::Socket::INET::peerhost() contains the remote IP of the Client
which changes according to each Remote Client with the tentacle_client installed

Before it logged:

2018-12-14 15:49:16 [info] Request to send file '[remote-host-name].1544802556.data' size 7096b from [local-server-ip].
2018-12-14 15:49:16 [info] Received file '[remote-host-name].1544802556.data' size 7096b from [local-server-ip].

change consistantly $t_client_socket->sockhost() to $t_client_socket->peerhost() since according to official documentation
https://perldoc.perl.org/IO/Socket/INET.html#METHODS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant