05nelsonm / kmp-tor

Kotlin Multiplatform Library for embedding Tor into your applications
Apache License 2.0
33 stars 5 forks source link

Use `__ReloadTorrcOnSIGHUP` as cli argument when starting tor #425

Closed 05nelsonm closed 1 month ago

05nelsonm commented 1 month ago

To disable usage of TorCmd.Signal.RELOAD, need to add as a default parameter TorConfig.__ReloadTorrcOnSIGHUP with a setting of false (0). Also need to create an interceptor for TorCtrl in order to inhibit any modifications of the setting via TorCmd.Config.Set or TorCmd.Config.Reset.

05nelsonm commented 1 month ago

Should also make TorCmd.Signal.Reload extend TorCmd.Privileged instead of TorCmd.Unprivileged