31 lines
767 B
Diff
31 lines
767 B
Diff
From 8e2c349b3921b47b9e1163a583cfd24141cb5532 Mon Sep 17 00:00:00 2001
|
|
From: guiyao <guiyao@huawei.com>
|
|
Date: Mon, 27 Jun 2022 17:45:34 +0800
|
|
Subject: [PATCH] disable reporting to http https ftp
|
|
|
|
---
|
|
src/error.c | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/error.c b/src/error.c
|
|
index 21533d2..eaac426 100644
|
|
--- a/src/error.c
|
|
+++ b/src/error.c
|
|
@@ -49,7 +49,12 @@ int error_init(url_t* url,int initial)
|
|
list* r=NULL;
|
|
FILE* fh=NULL;
|
|
int sfac;
|
|
-
|
|
+
|
|
+ if (url->type == url_http || url->type==url_https || url->type==url_ftp){
|
|
+ error(0,_("This binary has no http/https/ftp support\n"));
|
|
+ exit(INVALID_ARGUMENT_ERROR);
|
|
+ }
|
|
+
|
|
if (url->type==url_database) {
|
|
conf->report_db++;
|
|
return RETOK;
|
|
--
|
|
1.8.3.1
|
|
|