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

network(), syslog() sources: add $PEERIP and $PEERPORT macros #523

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

MrAnno
Copy link
Member

@MrAnno MrAnno commented Feb 20, 2025

The $PEERIP and $PEERPORT macros always display the address and port of the direct sender.
In most cases, these values are identical to $SOURCEIP and $SOURCEPORT.
However, when dealing with proxied protocols, $PEERIP and $PEERPORT reflect the proxy's address and port,
while $SOURCEIP and $SOURCEPORT indicate the original source of the message.

MrAnno added a commit to MrAnno/axosyslog that referenced this pull request Feb 24, 2025
Signed-off-by: László Várady <[email protected]>
MrAnno added a commit to MrAnno/axosyslog that referenced this pull request Feb 24, 2025
Signed-off-by: László Várady <[email protected]>
@MrAnno MrAnno changed the title logreader: save original peer address when transports send another one network(), syslog() sources: add $PEERIP and $PEERPORT macros Feb 24, 2025
@MrAnno MrAnno marked this pull request as ready for review February 24, 2025 17:22
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.

2 participants