diff --git a/pkg/setup/node.go b/pkg/setup/node.go index 510e0aa06f..5577b2b2af 100644 --- a/pkg/setup/node.go +++ b/pkg/setup/node.go @@ -268,7 +268,7 @@ func (sn *Node) createRoute(ctx context.Context, keepAlive time.Duration, route nextTpID = r[i+1].Transport rule = routing.ForwardRule(keepAlive, 0, nextTpID, 0) } else { - rule = routing.AppRule(keepAlive, 0, 0, init, rport, lport) + rule = routing.AppRule(keepAlive, 0, 0, init, lport, rport) } go func(i int, pk cipher.PubKey, rule routing.Rule, reqIDChIn <-chan routing.RouteID, diff --git a/pkg/visor/rpc_client.go b/pkg/visor/rpc_client.go index 8fda4a4f27..33a01cc14d 100644 --- a/pkg/visor/rpc_client.go +++ b/pkg/visor/rpc_client.go @@ -232,7 +232,7 @@ func NewMockRPCClient(r *rand.Rand, maxTps int, maxRules int) (cipher.PubKey, RP if err != nil { panic(err) } - appRule := routing.AppRule(ruleKeepAlive, fwdRID, remotePK, rp, lp, appRID) + appRule := routing.AppRule(ruleKeepAlive, appRID, fwdRID, remotePK, lp, rp) if err := rt.SetRule(appRID, appRule); err != nil { panic(err) }