sshtunnel: simplify command composition
authorSergey Ponomarev <stokito@gmail.com>
Fri, 22 Dec 2023 21:35:41 +0000 (23:35 +0200)
committerNuno Goncalves <nunojpg@gmail.com>
Wed, 27 Dec 2023 17:31:33 +0000 (17:31 +0000)
commit28e8daf726ee3f5aaec163401c40900ecb69e876
tree525b21308f00a1395b3f909ac342be2b16194518
parentd1d1bd60c94e3e23d3bec3895250e0cd812ff250
sshtunnel: simplify command composition

Remove append_params and use shell expressions instead e.g. ${port:+-p $port}.

Note that we can't do that with ProxyCommand because it has to be quoted.

The order of options was changed from more important like hostname to just static -nN.

The CompressionLevel option is removed from SSH2.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
net/sshtunnel/files/sshtunnel.init
net/sshtunnel/files/uci_sshtunnel