Lines 61-66
else:
Link Here
|
61 |
from mirrorselect.output import encoder, get_encoding, decode_selection |
61 |
from mirrorselect.output import encoder, get_encoding, decode_selection |
62 |
|
62 |
|
63 |
|
63 |
|
|
|
64 |
# The netselect --ipv4 and --ipv6 options are supported only |
65 |
# with >=net-analyzer/netselect-0.4[ipv6(+)]. |
66 |
NETSELECT_SUPPORTS_IPV4_IPV6 = False |
67 |
|
68 |
|
64 |
class Shallow(object): |
69 |
class Shallow(object): |
65 |
"""handles rapid server selection via netselect""" |
70 |
"""handles rapid server selection via netselect""" |
66 |
|
71 |
|
Lines 96-105
class Shallow(object):
Link Here
|
96 |
host_string = ' '.join(hosts) |
101 |
host_string = ' '.join(hosts) |
97 |
|
102 |
|
98 |
cmd = ['netselect', '-s%d' % (number,)] |
103 |
cmd = ['netselect', '-s%d' % (number,)] |
99 |
if self._options.ipv4: |
104 |
|
100 |
cmd.append('-4') |
105 |
if NETSELECT_SUPPORTS_IPV4_IPV6: |
101 |
elif self._options.ipv6: |
106 |
if self._options.ipv4: |
102 |
cmd.append('-6') |
107 |
cmd.append('-4') |
|
|
108 |
elif self._options.ipv6: |
109 |
cmd.append('-6') |
103 |
|
110 |
|
104 |
cmd.extend(hosts) |
111 |
cmd.extend(hosts) |
105 |
|
112 |
|
106 |
- |
|
|