Skip to content

Commit

Permalink
Fix packet forwarding from route group after a new route establishment
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Feb 20, 2020
1 parent d97be23 commit 7458daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/router/route_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (rg *RouteGroup) read(p []byte) (int, error) {
}

func (rg *RouteGroup) write(data []byte, tp *transport.ManagedTransport, rule routing.Rule) (int, error) {
packet := routing.MakeDataPacket(rule.KeyRouteID(), data)
packet := routing.MakeDataPacket(rule.NextRouteID(), data)

ctx, cancel := context.WithCancel(context.Background())

Expand Down

0 comments on commit 7458daf

Please sign in to comment.