Skip to content

Commit

Permalink
Sort out some PR queries
Browse files Browse the repository at this point in the history
Former-commit-id: 90c218e
  • Loading branch information
Darkren committed Jun 9, 2020
1 parent 8155ab1 commit 662d67a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/vpn/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ func NewClient(cfg ClientConfig, l logrus.FieldLogger, conn net.Conn) (*Client,
}
}

directIPs := make([]net.IP, 0, 3+len(dmsgSrvAddrs)+len(stcpEntities))
directIPs = append(directIPs, dmsgDiscIP, tpDiscIP, rfIP)
requiredDirectIPs := []net.IP{dmsgDiscIP, tpDiscIP, rfIP}
directIPs := make([]net.IP, 0, len(requiredDirectIPs)+len(dmsgSrvAddrs)+len(stcpEntities))
directIPs = append(directIPs, requiredDirectIPs...)
directIPs = append(directIPs, dmsgSrvAddrs...)
directIPs = append(directIPs, stcpEntities...)

Expand Down

0 comments on commit 662d67a

Please sign in to comment.