)]}'
{"src/openvpn/socket.c":[{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"24cd6f964b9dfce7e0667b152a1daededff364fd","unresolved":true,"context_lines":[{"line_number":962,"context_line":"    if (openvpn_bind(sd, cur-\u003eai_addr, cur-\u003eai_addrlen))"},{"line_number":963,"context_line":"    {"},{"line_number":964,"context_line":"        msg(msglevel | M_ERRNO, \"%s: Socket bind failed on local address %s\", prefix,"},{"line_number":965,"context_line":"            print_sockaddr_ex(local-\u003eai_addr, \":\", PS_SHOW_PORT, \u0026gc));"},{"line_number":966,"context_line":"        gc_free(\u0026gc);"},{"line_number":967,"context_line":"        return false;"},{"line_number":968,"context_line":"    }"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"606cdaa3_11d58094","line":965,"updated":"2026-09-24 12:38:28.000000000","message":"nit: Should this now print `cur-\u003eai_addr` rather than `local-\u003eai_addr`? `local` may point to an entry of another address family, while `cur` is the address on which the failed bind was actually attempted.","commit_id":"6d7faf037d7a3bc4be7c9e35649add2ec6d01e39"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"3699a192e7d7e39a22641a663977050e9f0d5d12","unresolved":false,"context_lines":[{"line_number":962,"context_line":"    if (openvpn_bind(sd, cur-\u003eai_addr, cur-\u003eai_addrlen))"},{"line_number":963,"context_line":"    {"},{"line_number":964,"context_line":"        msg(msglevel | M_ERRNO, \"%s: Socket bind failed on local address %s\", prefix,"},{"line_number":965,"context_line":"            print_sockaddr_ex(local-\u003eai_addr, \":\", PS_SHOW_PORT, \u0026gc));"},{"line_number":966,"context_line":"        gc_free(\u0026gc);"},{"line_number":967,"context_line":"        return false;"},{"line_number":968,"context_line":"    }"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"1ba5f4f0_659e43b3","line":965,"in_reply_to":"606cdaa3_11d58094","updated":"2026-11-04 15:24:19.000000000","message":"This was in pre-existing code, but fixed.","commit_id":"6d7faf037d7a3bc4be7c9e35649add2ec6d01e39"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"b5891b00bc5c6f60cb632675594ebde79afb42ad","unresolved":true,"context_lines":[{"line_number":321,"context_line":""},{"line_number":322,"context_line":"    socket_apply_options(sd, sbs, mark, bind_dev);"},{"line_number":323,"context_line":"    if (bind_addr"},{"line_number":324,"context_line":"        \u0026\u0026 !socket_bind(sd, bind_addr, af, \"TCP/UDP\", bind_ipv6_only, optional ? D_LOW : M_FATAL))"},{"line_number":325,"context_line":"    {"},{"line_number":326,"context_line":"        openvpn_close_socket(sd);"},{"line_number":327,"context_line":"        return SOCKET_UNDEFINED;"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"6973ad36_b4d4db36","line":324,"updated":"2026-11-04 15:15:56.000000000","message":"Would `M_WARN` be better than `D_LOW` here?","commit_id":"784196dabfe07410b20b9197bd46d58894aef69e"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"3699a192e7d7e39a22641a663977050e9f0d5d12","unresolved":false,"context_lines":[{"line_number":321,"context_line":""},{"line_number":322,"context_line":"    socket_apply_options(sd, sbs, mark, bind_dev);"},{"line_number":323,"context_line":"    if (bind_addr"},{"line_number":324,"context_line":"        \u0026\u0026 !socket_bind(sd, bind_addr, af, \"TCP/UDP\", bind_ipv6_only, optional ? D_LOW : M_FATAL))"},{"line_number":325,"context_line":"    {"},{"line_number":326,"context_line":"        openvpn_close_socket(sd);"},{"line_number":327,"context_line":"        return SOCKET_UNDEFINED;"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"00884d33_585f7756","line":324,"in_reply_to":"6973ad36_b4d4db36","updated":"2026-11-04 15:24:19.000000000","message":"The caller already logs \"no usable IPv6 socket, not probing IPv6 remotes\" on failure, which has the context this one lacks.  I\u0027d rather raise that message in the server-probe patch than warn here and explain it at debug level.","commit_id":"784196dabfe07410b20b9197bd46d58894aef69e"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"b5891b00bc5c6f60cb632675594ebde79afb42ad","unresolved":true,"context_lines":[{"line_number":585,"context_line":"    }"},{"line_number":586,"context_line":"    if (!cur)"},{"line_number":587,"context_line":"    {"},{"line_number":588,"context_line":"        msg(msglevel, \"%s: Socket bind failed: Addr to bind has no %s record\", prefix,"},{"line_number":589,"context_line":"            addr_family_name(ai_family));"},{"line_number":590,"context_line":"        gc_free(\u0026gc);"},{"line_number":591,"context_line":"        return false;"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"feeb54cd_fcb77bf0","line":588,"updated":"2026-11-04 15:15:56.000000000","message":"`msg((msglevel \u0026 M_FATAL) ? msglevel : D_LOW,`?","commit_id":"784196dabfe07410b20b9197bd46d58894aef69e"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"3699a192e7d7e39a22641a663977050e9f0d5d12","unresolved":false,"context_lines":[{"line_number":585,"context_line":"    }"},{"line_number":586,"context_line":"    if (!cur)"},{"line_number":587,"context_line":"    {"},{"line_number":588,"context_line":"        msg(msglevel, \"%s: Socket bind failed: Addr to bind has no %s record\", prefix,"},{"line_number":589,"context_line":"            addr_family_name(ai_family));"},{"line_number":590,"context_line":"        gc_free(\u0026gc);"},{"line_number":591,"context_line":"        return false;"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"815e7277_f75938b2","line":588,"in_reply_to":"feeb54cd_fcb77bf0","updated":"2026-11-04 15:24:19.000000000","message":"I\u0027d rather socket_bind() log at the level it was given than override it internally.","commit_id":"784196dabfe07410b20b9197bd46d58894aef69e"}],"src/openvpn/socket.h":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"b5891b00bc5c6f60cb632675594ebde79afb42ad","unresolved":true,"context_lines":[{"line_number":340,"context_line":"/**"},{"line_number":341,"context_line":" * Bind @p sd to the first @p af_family address of @p local. A failure is"},{"line_number":342,"context_line":" * reported at @p msglevel, so a caller that can do without the bind passes a"},{"line_number":343,"context_line":" * non-fatal level and checks the result."},{"line_number":344,"context_line":" *"},{"line_number":345,"context_line":" * @return whether the socket was bound"},{"line_number":346,"context_line":" */"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"bf854817_5c0fe3c1","line":343,"updated":"2026-11-04 15:15:56.000000000","message":"Then if you agree that `D_LOW` is not great in all cases, maybe drop a line about how log levels change in the function description here.","commit_id":"784196dabfe07410b20b9197bd46d58894aef69e"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"3699a192e7d7e39a22641a663977050e9f0d5d12","unresolved":false,"context_lines":[{"line_number":340,"context_line":"/**"},{"line_number":341,"context_line":" * Bind @p sd to the first @p af_family address of @p local. A failure is"},{"line_number":342,"context_line":" * reported at @p msglevel, so a caller that can do without the bind passes a"},{"line_number":343,"context_line":" * non-fatal level and checks the result."},{"line_number":344,"context_line":" *"},{"line_number":345,"context_line":" * @return whether the socket was bound"},{"line_number":346,"context_line":" */"}],"source_content_type":"text/x-csrc","patch_set":11,"id":"9779ec73_c167a611","line":343,"in_reply_to":"bf854817_5c0fe3c1","updated":"2026-11-04 15:24:19.000000000","message":"Without the conditional above, the function doesn\u0027t vary the level — it uses what the caller passes, which the existing doc already says.","commit_id":"784196dabfe07410b20b9197bd46d58894aef69e"}]}
