1 Star 0 Fork 14

yanshuai/open-isns

forked from src-openEuler/open-isns 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0003-isnsd-socket-Make-sure-to-create-IPv6-socket-default.patch 844 Bytes
一键复制 编辑 原始数据 按行查看 历史
From c87b55dac84ac0702ef55345edf019cccf0c62d6 Mon Sep 17 00:00:00 2001
From: Wenchao Hao <haowenchao@huawei.com>
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 <haowenchao@huawei.com>
---
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yanyan11222/open-isns.git
git@gitee.com:yanyan11222/open-isns.git
yanyan11222
open-isns
open-isns
master

搜索帮助