-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BUG] read the tor file completely to get hs info to delete or print #51
Comments
fixed on 5be0329 the problem is that it cannot contain lines not starting with HiddenService between the blocks, for example, a commented line would make this fail, or an empty line also. Works
Fail:
Fail:
before, this would fail even harder, as stated on the first port. |
how, just how? It is not easy to know when to stop parsing. |
I'm thinking of:
|
problem is that the script creates and deletes correctly if there is no manual intervention on the hiddenservice block. There is no |
I am no longer satisfied with grepping 7 lines starting from match:
onionjuggler/bin/onionjuggler-cli
Line 437 in 9ee4ff8
I used 7 as an arbitrary number and I could choose any other arbitrary number. But the solution is to read the file until the configuration is not HiddenService anymore or it is HiddenServiceDir of another service.
The other problem is the sed deleting lines. Before, every line was unique with HiddenServiceDir and HiddenServicePort, but HiddenServiceVersion is the same for every onion service, this means that when deleting a service, it would be deleting every version line from every service.
The text was updated successfully, but these errors were encountered: