I have a node i want to display at the default/public domain (site1.com) and in 2 groups (site2.fr and site3.com).

The node is visible at site2.fr/node/3 and site3.com/node/3. OK.

But when i visit the URL site1.com/node/3, i am routed to site2.fr/node/3.

To prevent this, i added the following code at line 128 (just after if($current_domain === NULL) $current_domain = _og_domain_get_base_url_domain();) :

$default_domain = variable_get('og_domain_default_value', '');
if($current_domain == $default_domain && $node->og_public == true){
  return $current_domain;
}

Hope this could help.