RFC6724 defines how the source address should be selected when given a destination address. Instead of selecting the first address in the list of interface addresses, the source address is selected following the standard.