message: [Fix] Allow connection of a noban banned peer
diff: @@ -906,7 +906,6 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) {
  NetPermissionFlags permissionFlags = NetPermissionFlags::PF_NONE;
  hListenSocket.AddSocketPermissionFlags(permissionFlags);
  AddWhitelistPermissionFlags(permissionFlags, addr);
  - const bool noban = NetPermissions::HasFlag(permissionFlags, NetPermissionFlags::PF_NOBAN);
  bool legacyWhitelisted = false;
  if (NetPermissions::HasFlag(permissionFlags, NetPermissionFlags::PF_ISIMPLICIT)) {
  NetPermissions::ClearFlag(permissionFlags, PF_ISIMPLICIT);
  @@ -953,7 +952,7 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) {
  // Don't accept connections from banned peers, but if our inbound slots aren't almost full, accept
  // if the only banning reason was an automatic misbehavior ban.
  - if (!noban && bannedlevel > ((nInbound + 1 < nMaxInbound) ? 1 : 0))
  + if (!NetPermissions::HasFlag(permissionFlags, NetPermissionFlags::PF_NOBAN) && bannedlevel > ((nInbound + 1 < nMaxInbound) ? 1 : 0))
  {
  LogPrint(BCLog::NET, "connection from %s dropped (banned)\n", addr.ToString());
  CloseSocket(hSocket);
  