File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import (
4
4
"time"
5
5
)
6
6
7
+ const (
8
+ RealIP RealIPHeaderName = "real_ip"
9
+ ForwardedFor RealIPHeaderName = "forwarded_for"
10
+ )
11
+
7
12
// Location represents location
8
13
type Location struct {
9
14
ID int64 `json:"id"`
@@ -760,6 +765,7 @@ type L7VHostZoneInput struct {
760
765
Domains []string `json:"domains"`
761
766
SSLCertID string `json:"ssl_certificate_id"`
762
767
LocationZones []L7LocationZoneInput `json:"location_zones"`
768
+ RealIPHeader * RealIPHeader `json:"real_ip_header,omitempty"`
763
769
}
764
770
765
771
// L7UpstreamInput represents l7 upstream input
@@ -1023,3 +1029,12 @@ type Invoice struct {
1023
1029
CsvUrl string `json:"csv_url"`
1024
1030
PdfUrl string `json:"pdf_url"`
1025
1031
}
1032
+
1033
+ // RealIPHeaderName represents real IP header name
1034
+ type RealIPHeaderName string
1035
+
1036
+ // RealIPHeader represents real IP header
1037
+ type RealIPHeader struct {
1038
+ Name RealIPHeaderName `json:"name"`
1039
+ Networks []string `json:"networks"`
1040
+ }
You can’t perform that action at this time.
0 commit comments