Skip to content

Commit

Permalink
Fix add-rule skywire-cli cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Aug 18, 2019
1 parent b174873 commit a5b89f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/skywire-cli/commands/node/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5b89f8

Please sign in to comment.