aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/options.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 31351d43d..e25466c39 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -179,6 +179,16 @@ def parseOpts(overrideArguments=None):
metavar='IP', dest='source_address', default=None,
help='Client-side IP address to bind to (experimental)',
)
+ network.add_option(
+ '-4', '--force-ipv4',
+ action='store_const', const='0.0.0.0', dest='source_address',
+ help='Make all connections via IPv4 (experimental)',
+ )
+ network.add_option(
+ '-6', '--force-ipv6',
+ action='store_const', const='::', dest='source_address',
+ help='Make all connections via IPv6 (experimental)',
+ )
selection = optparse.OptionGroup(parser, 'Video Selection')
selection.add_option(