about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Linux/Command/_iptables4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index df9a52247..24b7737d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2019-05-23  Oliver Kiddle  <okiddle@yahoo.co.uk>
 
+	* unposted: Completion/Linux/Command/_iptables: remove spurious
+	reference to nonexistent completion function
+
 	* 44349: Completion/Linux/Command/_cryptsetup,
 	Completion/X/Command/_x_utils, Completion/Linux/Command/_lsblk,
 	Completion/Linux/Command/_ss, Completion/Linux/Command/_valgrind,
diff --git a/Completion/Linux/Command/_iptables b/Completion/Linux/Command/_iptables
index 43f9f632f..27c801da1 100644
--- a/Completion/Linux/Command/_iptables
+++ b/Completion/Linux/Command/_iptables
@@ -47,7 +47,7 @@ case ${prev[${prev[(I)-p|--protocol]}+1]}; in
 esac
 
 case ${prev[${prev[(I)-j|--jump]}+1]}; in
-  DNAT) args+=( '(--to --to-destination)'{--to,--to-destination}':address:_users-ports' ) ;;
+  DNAT) args+=( '(--to --to-destination)'{--to,--to-destination}':address' ) ;;
   DSCP)
     args+=(
       '--set-dscp[set the DSCP field]:value'
@@ -67,7 +67,7 @@ case ${prev[${prev[(I)-j|--jump]}+1]}; in
   MARK) args+=( '--set-mark[set fwmark in packet]:number' ) ;;
   REDIRECT|MASQUERADE) args+=( '--to-ports[port (range) to map to]:port range:_ports' ) ;;
   REJECT) args+=( '--reject-with[drop packet and send reply]:reject type:->reject-types' ) ;;
-  SNAT) args+=( '(--to --to-source)*'{--to,--to-source}'[specify address to map source to]:address:_users-ports' ) ;;
+  SNAT) args+=( '(--to --to-source)*'{--to,--to-source}'[specify address to map source to]:address' ) ;;
   TCPMSS)
     args+=(
       '--set-mss[explicitly set MSS option]:value'