Giter VIP home page Giter VIP logo

Comments (6)

kannibalox avatar kannibalox commented on September 23, 2024 1

network.port_open is a boolean setting, used for turning on or off the port entirely. network.port_range.set=static_port-static_port is the correct way to set a static port. See https://kannibalox.github.io/rtorrent-docs/cmd-ref.html#network-commands for more details.

from rtorrent.

Nirzak avatar Nirzak commented on September 23, 2024

network.port_open is a boolean setting, used for turning on or off the port entirely. network.port_range.set=static_port-static_port is the correct way to set a static port. See https://kannibalox.github.io/rtorrent-docs/cmd-ref.html#network-commands for more details.

I know and I had exactly used that. used like as the following

network.port_open = yes
network.port_open.set = 41200

but nothing happens.

And I know the range trick works but still on the UI it’s showing 41200-41200

I mean why a single static port will be shown like this. with a hyphen in the middle. Isn’t it we can use another config to set the static port in a more correct manner rather than setting it as a range set which is not for static at all? and what is the network.port_open.set config is doing actually then?

from rtorrent.

kannibalox avatar kannibalox commented on September 23, 2024

network.port_open = yes
network.port_open.set = 41200

network.port_open is used to query whether or not the value is true, as such it ignores the "yes" and changes nothing. network.port_open.set = 41200 enables the port, since rTorrent considers any non-zero value to be the same as "yes". "yes" is the default, so it still doesn't actually change anything.

I mean why a single static port will be shown like this. with a hyphen in the middle. Isn’t it we can use another config to set the static port in a more correct manner rather than setting it as a range set which is not for static at all? and what is the network.port_open.set config is doing actually then?

It's just a quirk of rtorrent, any kind of new configuration option to set a single port would just be a convenience function that does the exact same thing as network.port_range.set=41200-41200. I'm not sure what you mean when you say it's not static at all. rTorrent will trying to listen on port 41200, and if it's already being listened on, rTorrent will exit with an error message.

from rtorrent.

Nirzak avatar Nirzak commented on September 23, 2024

network.port_open = yes
network.port_open.set = 41200

network.port_open is used to query whether or not the value is true, as such it ignores the "yes" and changes nothing. network.port_open.set = 41200 enables the port, since rTorrent considers any non-zero value to be the same as "yes". "yes" is the default, so it still doesn't actually change anything.

I mean why a single static port will be shown like this. with a hyphen in the middle. Isn’t it we can use another config to set the static port in a more correct manner rather than setting it as a range set which is not for static at all? and what is the network.port_open.set config is doing actually then?

It's just a quirk of rtorrent, any kind of new configuration option to set a single port would just be a convenience function that does the exact same thing as network.port_range.set=41200-41200. I'm not sure what you mean when you say it's not static at all. rTorrent will trying to listen on port 41200, and if it's already being listened on, rTorrent will exit with an error message.

Ok I see. Thanks a lot. But I still couldn't grab the purpose of the network.port_open.set configuration option. that what does it do if network.port_range.set is basically setting the incoming port always.

from rtorrent.

kannibalox avatar kannibalox commented on September 23, 2024

If for some reason you wanted to completely disable the listening port, you can't do that via network.port_range.set. You'd need to do network.port_open.set = no.

from rtorrent.

Nirzak avatar Nirzak commented on September 23, 2024

If for some reason you wanted to completely disable the listening port, you can't do that via network.port_range.set. You'd need to do network.port_open.set = no.

Oh OK I see. that means network.port_open and network.port_open.set are the same. the latter is just an alias of the previous one. So it's a boolean value whether we want to turn off the listening port or not. I see. thanks a lot, bro for the explanation.

from rtorrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.