Skip to content

Commit

Permalink
Fix route ID occupation
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Aug 26, 2019
1 parent 8519d1f commit f4471a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/router/route_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/google/uuid"
"net"
"time"

Expand Down Expand Up @@ -304,7 +305,7 @@ func (rm *routeManager) loopClosed(data []byte) error {
}

func (rm *routeManager) occupyRouteID() ([]routing.RouteID, error) {
routeID, err := rm.rt.AddRule(nil)
routeID, err := rm.rt.AddRule(routing.ForwardRule(DefaultRouteKeepAlive, 0, uuid.UUID{}, 0))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f4471a6

Please sign in to comment.