aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-04-17 08:42:01 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-04-17 08:42:01 +0000
commit17a3df7440781c2c1e79a90579ff29ebde8f8e51 (patch)
tree72cbbe86429ee5a417a3ed17747538caa2aa2b73 /rc.c
parentUpdate ChangeLog (diff)
downloadw3m-17a3df7440781c2c1e79a90579ff29ebde8f8e51.tar.gz
w3m-17a3df7440781c2c1e79a90579ff29ebde8f8e51.zip
New option localhost_only to restrict connections only to localhost
Bug-Debian: https://github.com/tats/w3m/issues/117
Diffstat (limited to '')
-rw-r--r--rc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.c b/rc.c
index c93dcd6..469e6af 100644
--- a/rc.c
+++ b/rc.c
@@ -223,6 +223,7 @@ static int OptionEncode = FALSE;
#endif
#define CMT_FOLLOW_REDIRECTION N_("Number of redirections to follow")
#define CMT_META_REFRESH N_("Enable processing of meta-refresh tag")
+#define CMT_LOCALHOST_ONLY N_("Restrict connections only to localhost")
#ifdef USE_MIGEMO
#define CMT_USE_MIGEMO N_("Enable Migemo (Roma-ji search)")
@@ -698,6 +699,8 @@ struct param_ptr params9[] = {
CMT_FOLLOW_REDIRECTION, NULL},
{"meta_refresh", P_CHARINT, PI_ONOFF, (void *)&MetaRefresh,
CMT_META_REFRESH, NULL},
+ {"localhost_only", P_CHARINT, PI_ONOFF, (void *)&LocalhostOnly,
+ CMT_LOCALHOST_ONLY, NULL},
#ifdef INET6
{"dns_order", P_INT, PI_SEL_C, (void *)&DNS_order, CMT_DNS_ORDER,
(void *)dnsorders},