Skip to content

Commit d3ff6a7

Browse files
committed
feat(wget): ipv6 addresses for --bind-address
Fixes #1315
1 parent 0ea21b9 commit d3ff6a7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

completions/wget

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
_comp_cmd_wget()
44
{
55
local cur prev words cword was_split comp_args
6-
_comp_initialize -s -- "$@" || return
6+
_comp_initialize -s -n : -- "$@" || return
77

88
local noargopts='!(-*|*[DPoaOitTwlQeBUARIX]*)'
99
# shellcheck disable=SC2254
@@ -16,7 +16,7 @@ _comp_cmd_wget()
1616
return
1717
;;
1818
--bind-address)
19-
_comp_compgen_ip_addresses
19+
_comp_compgen_ip_addresses -a
2020
return
2121
;;
2222
--domains | --exclude-domains | -${noargopts}D)

test/t/test_wget.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ def test_1(self, completion):
99
@pytest.mark.complete("wget --s", require_cmd=True)
1010
def test_2(self, completion):
1111
assert completion
12+
13+
@pytest.mark.complete("wget --bind-address=:")
14+
def test_3(self, completion):
15+
# Binding to ipv6 localhost
16+
assert ":1" in completion

0 commit comments

Comments
 (0)