From c87b55dac84ac0702ef55345edf019cccf0c62d6 Mon Sep 17 00:00:00 2001 From: Wenchao Hao Date: Mon, 29 Aug 2022 22:40:46 +0800 Subject: [PATCH] isnsd: socket: Make sure to create IPv6 socket default As described in isnsd's manual, if not explictly specified, the isnsd should listen IPv6 address as default. Signed-off-by: Wenchao Hao --- isnsd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/isnsd.c b/isnsd.c index 6c41c30..4031b51 100644 --- a/isnsd.c +++ b/isnsd.c @@ -29,7 +29,8 @@ enum { }; static const char * opt_configfile = ISNS_DEFAULT_ISNSD_CONFIG; -static int opt_af = AF_UNSPEC; +static int opt_af = AF_INET6; // should be AF_INET6 as described in isnsd's manual + static int opt_mode = MODE_NORMAL; static int opt_foreground = 0; -- 2.27.0