I dug into the plugin and figured out that my $_SERVER[‘SERVER_NAME’] isn’t updating based on source. so it always points to https://my.domain.com. where $_SERVER[‘HTTP_HOST’] changes to the correct name.
Commenting out the
if ( isset( $_SERVER['SERVER_NAME'] ) ) {
$host = $_SERVER['SERVER_NAME'];
}
in
public static function get_server_name()
solves my issue, but patching means I can’t update the plugin.