diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-09-22 17:37:40 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-09-22 17:37:40 +0000 |
commit | f9f7f794a2a49b9a83ba255cdd0b15e7cc0e86cd (patch) | |
tree | 58cbcfa144204dc951e93f9d7cf04a1ebb069662 /main.c | |
parent | rerun aclocal & autoconf (diff) | |
download | w3m-f9f7f794a2a49b9a83ba255cdd0b15e7cc0e86cd.tar.gz w3m-f9f7f794a2a49b9a83ba255cdd0b15e7cc0e86cd.zip |
[w3m-dev 03967] Re: IPv4/IPv6 only option patch
* NEWS: options: -4, -6
* fm.h (DNS_ORDER_INET_ONLY): added
(DNS_ORDER_INET6_ONLY): added
(ai_family_order_table): [3]->[7]
* main.c (fusage): add -4/-6
(main): -4/-6 mapped to dns_order=4/dns_order=6
* rc.c (dnsorders): add DNS_ORDER_INET_ONLY, DNS_ORDER_INET6_ONLY
* url.c (dnsorders): add 3-6
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.229 2003/07/22 17:33:16 ukai Exp $ */ +/* $Id: main.c,v 1.230 2003/09/22 17:37:41 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -221,6 +221,10 @@ fusage(FILE * f, int err) fprintf(f, " +<num> goto <num> line\n"); fprintf(f, " -num show line number\n"); fprintf(f, " -no-proxy don't use proxy\n"); +#ifdef INET6 + fprintf(f, " -4 IPv4 only (-o dns_order=4)\n"); + fprintf(f, " -6 IPv6 only (-o dns_order=6)\n"); +#endif #ifdef USE_MOUSE fprintf(f, " -no-mouse don't use mouse\n"); #endif /* USE_MOUSE */ @@ -608,6 +612,10 @@ main(int argc, char **argv, char **envp) showLineNum = TRUE; else if (!strcmp("-no-proxy", argv[i])) use_proxy = FALSE; +#ifdef INET6 + else if (!strcmp("-4", argv[i]) || !strcmp("-6", argv[i])) + set_param_option(Sprintf("dns_order=%c", argv[i][1])->ptr); +#endif else if (!strcmp("-post", argv[i])) { if (++i >= argc) usage(); |