|
|
|
@ -518,6 +518,9 @@ type LinkedService struct {
|
|
|
|
|
// SNI is the optional name to specify during the TLS handshake with a linked service
|
|
|
|
|
SNI string `json:",omitempty"`
|
|
|
|
|
|
|
|
|
|
//DisableAutoHostRewrite disables terminating gateways auto host rewrite feature when set to true.
|
|
|
|
|
DisableAutoHostRewrite bool `json:",omitempty"`
|
|
|
|
|
|
|
|
|
|
acl.EnterpriseMeta `hcl:",squash" mapstructure:",squash"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -668,6 +671,7 @@ type GatewayService struct {
|
|
|
|
|
FromWildcard bool `json:",omitempty"`
|
|
|
|
|
ServiceKind GatewayServiceKind `json:",omitempty"`
|
|
|
|
|
RaftIndex
|
|
|
|
|
AutoHostRewrite bool `json:",omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GatewayServices []*GatewayService
|
|
|
|
@ -715,14 +719,15 @@ func (g *GatewayService) Clone() *GatewayService {
|
|
|
|
|
Port: g.Port,
|
|
|
|
|
Protocol: g.Protocol,
|
|
|
|
|
// See https://github.com/go101/go101/wiki/How-to-efficiently-clone-a-slice%3F
|
|
|
|
|
Hosts: append(g.Hosts[:0:0], g.Hosts...),
|
|
|
|
|
CAFile: g.CAFile,
|
|
|
|
|
CertFile: g.CertFile,
|
|
|
|
|
KeyFile: g.KeyFile,
|
|
|
|
|
SNI: g.SNI,
|
|
|
|
|
FromWildcard: g.FromWildcard,
|
|
|
|
|
RaftIndex: g.RaftIndex,
|
|
|
|
|
ServiceKind: g.ServiceKind,
|
|
|
|
|
Hosts: append(g.Hosts[:0:0], g.Hosts...),
|
|
|
|
|
CAFile: g.CAFile,
|
|
|
|
|
CertFile: g.CertFile,
|
|
|
|
|
KeyFile: g.KeyFile,
|
|
|
|
|
SNI: g.SNI,
|
|
|
|
|
FromWildcard: g.FromWildcard,
|
|
|
|
|
RaftIndex: g.RaftIndex,
|
|
|
|
|
ServiceKind: g.ServiceKind,
|
|
|
|
|
AutoHostRewrite: g.AutoHostRewrite,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|