From a5b89f80e00312c4b1e7a9f1f4e66f23edbb309b Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Sun, 18 Aug 2019 17:21:37 +0300 Subject: [PATCH] Fix `add-rule` `skywire-cli` cmd --- cmd/skywire-cli/commands/node/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/skywire-cli/commands/node/routes.go b/cmd/skywire-cli/commands/node/routes.go index 0d8012ce5..0320d7018 100644 --- a/cmd/skywire-cli/commands/node/routes.go +++ b/cmd/skywire-cli/commands/node/routes.go @@ -100,13 +100,13 @@ var addRuleCmd = &cobra.Command{ remotePort = routing.Port(parseUint("remote-port", args[3], 16)) localPort = routing.Port(parseUint("local-port", args[4], 16)) ) - rule = routing.AppRule(time.Now().Add(expire), routeID, remotePK, remotePort, localPort) + rule = routing.AppRule(time.Now().Add(expire), routeID, remotePK, remotePort, localPort, 0) case "fwd": var ( nextRouteID = routing.RouteID(parseUint("next-route-id", args[1], 32)) nextTpID = internal.ParseUUID("next-transport-id", args[2]) ) - rule = routing.ForwardRule(time.Now().Add(expire), nextRouteID, nextTpID) + rule = routing.ForwardRule(time.Now().Add(expire), nextRouteID, nextTpID, 0) } rIDKey, err := rpcClient().AddRoutingRule(rule) internal.Catch(err)