[tor-commits] [tor/master] Extract ExitPolicy-and-IPv6Exit check into a new function