[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-relays] sharing tor relay at night or working hours ? make sense ?



On Sun, Jun 11, 2017 at 09:00:48AM -0700, Zalezny Niezalezny wrote:
> ok , if I will replace configuration file with the new settings, do I need
> to reload or restart my tor node ?
> I do not want to loose my active connections. How to do it properly ?

Tor has a control port that can be used to change configuration
on-the-fly.  And there's a library to talk to it in Python called Stem.
(https://stem.torproject.org/)  With Stem, you'd do something like this:

from stem.control import Controller

with Controller.from_port(port = 9051) as controller:
    controller.authenticate()
    controller.set_options({
      "BandwidthRate": "1073741824",
      "BandwidthBurst": "1073741824",
      "MaxAdvertisedBandwidth": "1073741824",
    })

Attachment: signature.asc
Description: PGP signature

_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays