TUN-2776: Add header serialization feature in cloudflared
This commit is contained in:
parent
29f4650e25
commit
26f5f80811
|
@ -0,0 +1,9 @@
|
|||
package connection
|
||||
|
||||
const (
|
||||
FEATURE_SERIALIZED_HEADERS = "serialized_headers"
|
||||
)
|
||||
|
||||
var SUPPORTED_FEATURES = []string{
|
||||
//FEATURE_SERIALIZED_HEADERS,
|
||||
}
|
|
@ -161,6 +161,7 @@ func (c *TunnelConfig) RegistrationOptions(connectionID uint8, OriginLocalIP str
|
|||
RunFromTerminal: c.RunFromTerminal,
|
||||
CompressionQuality: c.CompressionQuality,
|
||||
UUID: uuid.String(),
|
||||
Features: connection.SUPPORTED_FEATURES,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -168,6 +168,7 @@ type RegistrationOptions struct {
|
|||
CompressionQuality uint64 `capnp:"compressionQuality"`
|
||||
UUID string `capnp:"uuid"`
|
||||
NumPreviousAttempts uint8
|
||||
Features []string
|
||||
}
|
||||
|
||||
func MarshalRegistrationOptions(s tunnelrpc.RegistrationOptions, p *RegistrationOptions) error {
|
||||
|
|
Loading…
Reference in New Issue