tor-hs: tor-hs.init handle_hs_ports_conf split ports
authorSergey Ponomarev <redacted>
Sat, 15 Jul 2023 14:27:39 +0000 (17:27 +0300)
committerJosef Schlehofer <redacted>
Tue, 20 May 2025 11:20:46 +0000 (13:20 +0200)
commitc709e7a09feef4e0bb8033c3c4d671d41e8cfe4f
treefa8e3d8420e2e1178d74e9f7a234fded84c0e40c
parent910041d39fda5ed802c0150ef0e430ed8b716fc3
tor-hs: tor-hs.init handle_hs_ports_conf split ports

Using substring instead of awk.
It changes behaviour when only one port is specified.
Previously:
value="80" => public="80" local=""
Now:
value="80" => public="80" local="80"

It simplifies configuration of one-to-one ports.

Signed-off-by: Sergey Ponomarev <redacted>
net/tor-hs/files/tor-hs.init
git clone https://git.99rst.org/PROJECT