Fix port parsing in check_via.