Fixed: Improve Bind Address validation and help text

This commit is contained in:
Mark McDowall
2022-12-04 22:08:56 -08:00
committed by Qstick
parent c69843931e
commit f172d17ecc
5 changed files with 52 additions and 22 deletions
@@ -33,9 +33,9 @@ namespace Prowlarr.Api.V1.Config
_userService = userService;
SharedValidator.RuleFor(c => c.BindAddress)
.ValidIp4Address()
.ValidIpAddress()
.NotListenAllIp4Address()
.When(c => c.BindAddress != "*");
.When(c => c.BindAddress != "*" && c.BindAddress != "localhost");
SharedValidator.RuleFor(c => c.Port).ValidPort();