airdcpp / airdcpp-windows

http://www.airdcpp.net
GNU General Public License v3.0
80 stars 19 forks source link

How to disable webserver? #83

Closed LuzhinSWE closed 1 year ago

LuzhinSWE commented 1 year ago

So I have the issue that Airdc run a webserver as default and I find that strange. I dont see the point that it should do that by default, it would be better that the user should decide that instead that it runs as default.

So is there any way to disable this webserver permanently? There is a method to stop it but that I need to do every time I start Airdc which is quite annoying to be frank.

Would be thankful for help!

Skärmbild 2022-12-20 130511

Sopor commented 1 year ago

If you set the port to 0 it should not start the web server Port (0 = disabled), but if you do that you can't run any extensions (that is the reason for the web server to run as default).

As long as the Bind address is set to Localhost (127.0.0.1) there is no way that someone outside can connect through the web server, so i see no reason why the web server can't run even if you don't use it...

LuzhinSWE commented 1 year ago

If you set the port to 0 it should not start the web server Port (0 = disabled), but if you do that you can't run any extensions (that is the reason for the web server to run as default).

As long as the Bind address is set to Localhost (127.0.0.1) there is no way that someone outside can connect through the web server, so i see no reason why the web server can't run even if you don't use it...

I have tried to stop it as the picture show and also put the port to 0. But next time I start Airdc the webserver starts with the default settings.

Maybe so, but I find it strange that Airdc start a server by default that the user is not in control over. I should be the user that make the active choice to start a server not the program itself.

But maybe the only way to solve this is to stop the server every time I start Airdc?

Sopor commented 1 year ago

If you update to 4.12 beta it will not run if you change both ports to 0.

Change update channel to image and update from File / Update check

But do keep in mind that the extensions will NOT work!

LuzhinSWE commented 1 year ago

If you update to 4.12 beta it will not run if you change both ports to 0.

Change update channel to image and update from File / Update check

But do keep in mind that the extensions will NOT work!

Thanks! But I prefer stable versions, but then this will be fixed in future updates which is good!

maksis commented 1 year ago

https://github.com/airdcpp/airdcpp-windows/commit/4af5feb7fce41e2bfdc27fddfa77d0c0d090ff44