AddWhitelistPermissionFlags was always being called with an empty ranges (whitelist permissions). This function is called when connecting to a node (ConnectNode), and if the connection is a manual one, it uses the vWhitelistedRangeOutgoing to populate the permissions. However, since we were not setting any whitelist permission on the target, this vector is always empty. This PR improves this target by populating both vWhitelistedRangeIncoming and vWhitelistedRangeOutgoing.