-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tor-hs: refactor + readme fixes #25162
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
c893416
to
6efcee4
Compare
IMHO it would be better to merge the #21642 |
@@ -8,10 +8,11 @@ | |||
include $(TOPDIR)/rules.mk | |||
|
|||
PKG_NAME:=tor-hs | |||
PKG_VERSION:=0.0.1 | |||
PKG_RELEASE:=3 | |||
PKG_VERSION:=0.0.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new option (functionality) so we may increase the minor version to v0.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your PR can own 0.1. :)
echo "{" | ||
echo '"hs-list":[' | ||
|
||
json_init |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the string concatenation was faster and used less code
@@ -41,60 +41,54 @@ config_tor() { | |||
handle_hs_ports_conf() { | |||
local public_port local_port | |||
local value="$1" | |||
local ipv4="$2" | |||
local ipaddr="$2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact this may be not an IP but a unix socket and using of them is even more preferable because you can assign permissions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's nothing that prevents ipaddr from holding a socket string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you suggest a rename?
The changes still produce synonymous output; just a refactor. Including addition of IPv6 (available tor version supports it) Signed-off-by: Paul Donald <newtwen+github@gmail.com>
6efcee4
to
a63f331
Compare
Maintainer: me / @stokito
Run tested: 23.05.5 x86_64
Description: refactor to clean up init scripts