Skip to content

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

Merged
OverOrion merged 6 commits intoaxoflow:mainfrom
MrAnno:proxy-addr
Feb 28, 2025
Merged

network(), syslog() sources: add $PEERIP and $PEERPORT macros#523
OverOrion merged 6 commits intoaxoflow:mainfrom
MrAnno:proxy-addr

Conversation

@MrAnno
Copy link
Contributor

@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
@OverOrion OverOrion merged commit f4908be into axoflow:main Feb 28, 2025
22 checks passed
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.

3 participants