Follow up question from my side Jason: what do you think about replacing
"$2" in the script with a shifted "$@" and allowing multiple devices to
be specified?

i.e. wg-quick up wgungleich wgplace4 wgplace11

is something I would like to do in one call and it would potentially be
easy to just loop around it as follows:

...
elif [[ $# -ge 2 && $1 == up ]]; then
        auto_su
    shift # kick out "up" from the list
    while [ $# -ge 1 ]; do
        name=$1; shift
            parse_options "$name"
        cmd_up
    done
...


Jason A. Donenfeld <[email protected]> writes:

> Thanks. Fixed this way:
> https://git.zx2c4.com/WireGuard/commit/?id=57854fb710160f567cf776b65080a9ce5afdf02c
>
> But: why is your remove_iptables failing in the first place?
> _______________________________________________
> WireGuard mailing list
> [email protected]
> https://lists.zx2c4.com/mailman/listinfo/wireguard


--
Modern, affordable, Swiss Virtual Machines. Visit www.datacenterlight.ch
_______________________________________________
WireGuard mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/wireguard

Reply via email to