WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: Thomas Sattler <sattler@med.uni-frankfurt.de>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: PostDown 0.0.20191127
Date: Thu, 28 Nov 2019 14:32:27 +0100
Message-ID: <cc88dffc-8940-64c9-f339-0a158fb87967@med.uni-frankfurt.de> (raw)
In-Reply-To: <CAHmME9rV17Y_NE-=OV96FWt6=3fx94D8G4ADcvj9nG7zzHdL4w@mail.gmail.com>

Am 28.11.19 um 13:51 schrieb Jason A. Donenfeld:
> Thanks. Fixed this way:
> https://git.zx2c4.com/WireGuard/commit/?id=57854fb710160f567cf776b65080a9ce5afdf02c
> But: why is your remove_iptables failing in the first place?

If I understand correctly, the implicit return value of remove_iptables()
is the return value of its last command, which is the included for-loop.

And the implicit return value of the for loop is the return value of the
last command run inside the for-loop. Which is the test whether $found
is one. On my system $found is zero.

So the test "fails" and remove_iptables() returns non-zero.

WireGuard mailing list

  parent reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-28 12:27 Thomas Sattler
2019-11-28 12:51 ` Jason A. Donenfeld
2019-11-28 13:07   ` Nico Schottelius
2019-11-28 13:32   ` Thomas Sattler [this message]
2019-11-28 17:14     ` Jason A. Donenfeld

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc88dffc-8940-64c9-f339-0a158fb87967@med.uni-frankfurt.de \
    --to=sattler@med.uni-frankfurt.de \
    --cc=Jason@zx2c4.com \
    --cc=wireguard@lists.zx2c4.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git