From 58072f8673683609e7a43aaf5d5409b76e4a3a50 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Mon, 2 Apr 2018 17:59:48 -0400 Subject: [PATCH] util/config/validators: ensure endpoint isn't prom --- util/config/validators/validate_torrent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/config/validators/validate_torrent.py b/util/config/validators/validate_torrent.py index 30d53d897..f63029c46 100644 --- a/util/config/validators/validate_torrent.py +++ b/util/config/validators/validate_torrent.py @@ -51,3 +51,7 @@ class BittorrentValidator(BaseValidator): if 'failure reason' in resp.text: raise ConfigValidationException('Could not validate signed announce request: ' + resp.text) + + if 'go_goroutines' in resp.text: + raise ConfigValidationException('Could not validate signed announce request: ' + + 'provided port is used for Prometheus')