Skip to content

Commit

Permalink
Update config/localTemplate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Paulos <jasonpaulos@users.noreply.github.com>
  • Loading branch information
algorandskiy and jasonpaulos committed Dec 6, 2023
1 parent 5e238b3 commit 9b70c0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/localTemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ type Local struct {
// field can be used.
// This setting does not support multiple X-Forwarded-For HTTP headers or multiple values in in the header and always uses the last value
// from the last X-Forwarded-For HTTP header that corresponds to a single reverse proxy (even if it received the request from another reverse proxy or adversary node).
//
// WARNING: By enabling this option, you are trusting peers to provide accurate forwarding addresses.
// Bad actors can easily spoof these headers to circumvent this node's rate and connection limiting
// logic. Do not enable this if your node is publicly reachable or used by untrusted parties.
UseXForwardedForAddressField string `version[0]:""`

// ForceRelayMessages indicates whether the network library should relay messages even in the case that no NetAddress was specified.
Expand Down

0 comments on commit 9b70c0f

Please sign in to comment.