mirror of
https://github.com/openziti/ziti.git
synced 2026-10-14 08:10:17 +00:00
Use new header method
This commit is contained in:
@@ -333,9 +333,8 @@ func (proxy *ingressProxy) processUpdateBind(req *channel2.Message, ch channel2.
|
||||
}
|
||||
|
||||
var cost *uint16
|
||||
if costBytes, hasCost := req.Headers[edge.CostHeader]; hasCost {
|
||||
updatedCost := binary.LittleEndian.Uint16(costBytes)
|
||||
cost = &updatedCost
|
||||
if costVal, hasCost := req.GetUint16Header(edge.CostHeader); hasCost {
|
||||
cost = &costVal
|
||||
}
|
||||
|
||||
var precedence *ctrl_pb.TerminatorPrecedence
|
||||
|
||||
Reference in New Issue
Block a user