PostDown 0.0.20191127

Thomas Sattler sattler at med.uni-frankfurt.de
Thu Nov 28 14:32:27 CET 2019


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.

Thomas


More information about the WireGuard mailing list