Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4415e5c

Browse files
committed
Use IN6ADDR_ANY_INIT instead of in6addr_any
1 parent 7a1b54e commit 4415e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
15181518
if (!mapMultiArgs.count("-bind") && !mapMultiArgs.count("-whitebind")) {
15191519
struct in_addr inaddr_any;
15201520
inaddr_any.s_addr = INADDR_ANY;
1521-
fBound |= Bind(connman, CService(in6addr_any, GetListenPort()), BF_NONE);
1521+
fBound |= Bind(connman, CService((in6_addr)IN6ADDR_ANY_INIT, GetListenPort()), BF_NONE);
15221522
fBound |= Bind(connman, CService(inaddr_any, GetListenPort()), !fBound ? BF_REPORT_ERROR : BF_NONE);
15231523
}
15241524
if (!fBound)

0 commit comments

Comments
 (0)