Commit ca2908fe authored by harrylee's avatar harrylee

fix a bug for from and to addr exchange

parent 752987b8
Pipeline #8347 canceled with stages
...@@ -135,6 +135,10 @@ func (r *router) Route(msg *pb.Message) error { ...@@ -135,6 +135,10 @@ func (r *router) Route(msg *pb.Message) error {
return err return err
} }
_, to := ibtp.From, ibtp.To _, to := ibtp.From, ibtp.To
//FIXME 修复响应ibtp加载port,to地址交换的bug
if ibtp.Type == pb.IBTP_RECEIPT_SUCCESS || ibtp.Type == pb.IBTP_RECEIPT_FAILURE {
to = ibtp.From
}
if pp, is := r.portMap.Port(to); is { if pp, is := r.portMap.Port(to); is {
mode := ibtpx.Mode mode := ibtpx.Mode
hub, is := r.getHub() hub, is := r.getHub()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment