Files
chmlib/chm_http-bind-localhost.patch
Dirk Mueller b79535abee - drop chmlib-0.39.diff - superseded by
chmlib-0001-Patch-to-fix-integer-types-problem-by-Goswin-von-Bre.patch
- add
  chmlib-0001-Patch-to-fix-integer-types-problem-by-Goswin-von-Bre.patch,
  chmlib-0002-Fix-for-extract_chmLib-confusing-empty-files-with-di.patch,
  chm_http-port-shortopt.patch, chm_http-bind-localhost.patch,
  chm_http-output-server-address.patch: restrict access to
  localhost to somewhat reduce reach
- remove static libraries and "la" files
   * all of the dynamically-sized buffers which were allocated on

OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/chmlib?expand=0&rev=14
2023-10-05 09:52:16 +00:00

26 lines
604 B
Diff

From ad27f1981415f9b9df179099e36d793327ce6d8c Mon Sep 17 00:00:00 2001
From: "FeRD (Frank Dana)" <ferdnyc@gmail.com>
Date: Thu, 11 Jul 2019 20:57:19 -0400
Subject: [PATCH] Change the default binding to 127.0.0.1
---
src/chm_http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/chm_http.c b/src/chm_http.c
index 237e85a..ddffe55 100644
--- a/src/chm_http.c
+++ b/src/chm_http.c
@@ -50,7 +50,7 @@
#include <getopt.h>
int config_port = 8080;
-char config_bind[65536] = "0.0.0.0";
+char config_bind[65536] = "127.0.0.1";
static void usage(const char *argv0)
{
--
2.21.0