sane-vpn: fix none option

This commit is contained in:
2024-07-17 13:13:14 +00:00
parent 94a0e77fcc
commit c6f07d4f55

View File

@@ -146,10 +146,10 @@ vpnDo() {
debug " addrV4='$addrV4'"
debug " dns='$dns'"
debug "command: ${command[*]}"
local dnsFlags=${dns:+--sanebox-dns $dns}
# sanebox --sanebox-method pastaonly --sanebox-net-dev "$name" --sanebox-net-gateway "$addrV4" --sanebox-dns "$dns" "${command[@]}"
local netFlags=${dns:+ --sanebox-dns $dns}${name:+ --sanebox-net-dev $name}${addrV4:+ --sanebox-net-gateway $addrV4}
# sanebox --sanebox-method pastaonly $netFlags "${command[@]}"
sanebox --sanebox-method bwrap --sanebox-keep-namespace all --sanebox-path / --sanebox-no-portal \
--sanebox-net-dev "$name" --sanebox-net-gateway "$addrV4" $dnsFlags \
$netFlags \
"${command[@]}"
}