Skip to content

Commit

Permalink
Make app server get the correct local PK of route group
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Nov 29, 2019
1 parent 75467f5 commit 17f67b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/app/appnet/skywire_networker.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ func (r *SkywireNetworker) serve(ctx context.Context) error {

// serveRG passes accepted router group to the corresponding listener.
func (r *SkywireNetworker) serveRG(rg *router.RouteGroup) {
// TODO: local? remote? decide on this
localAddr, ok := rg.RemoteAddr().(routing.Addr)
localAddr, ok := rg.LocalAddr().(routing.Addr)
if !ok {
r.closeRG(rg)
r.log.Error("wrong type of addr in accepted conn")
Expand Down

0 comments on commit 17f67b9

Please sign in to comment.