You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go sdk: add accessor for destination address (#50)
This can be useful for WAF purposes (though it may be desirable as well
to get the ip from a header like XFF or the Envoy trusted IP).
---------
Signed-off-by: William Zhang <wtzhang23@gmail.com>
Copy file name to clipboardExpand all lines: go/gosdk/gosdk.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,9 @@ type EnvoyHttpFilter interface {
59
59
// GetSourceAddress gets the source address of the request in the format of "IP:PORT".
60
60
// This corresponds to `source.address` attribute https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes.
61
61
GetSourceAddress() string
62
+
// GetDestinationAddress gets the destination address of the request in the format of "IP:PORT".
63
+
// This corresponds to `destination.address` attribute https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes.
64
+
GetDestinationAddress() string
62
65
// GetRequestProtocol gets the request protocol. This corresponds to `request.protocol` attribute https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes.
63
66
GetRequestProtocol() string
64
67
// NewScheduler creates a new Scheduler that can be used to schedule events to the correct Envoy worker thread.
0 commit comments