<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><span style="font-size: 16px;">Hi, Team,</span></div><div><br></div><div><span style="font-size: 16px;">I enabled the "/xyz/openbmc_project/logging/rest_api_logs" and add the patch code as followed,  the journal log does not record IPv4(10.0.2.2) but IPv6(::ffff:10.0.2.2) .</span></div><div><span style="font-size: 16px;"><br></span></div><div><span style="font-size: 16px;">Does anybody know why?</span></div><div><br></div><div><div style="color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Consolas, "Courier New", monospace; line-height: 19px; white-space: pre;"><div><span style="color: #c586c0;">if</span> <span style="color: #569cd6;">constexpr</span> (<span style="color: #4ec9b0;">std</span>::is_same_v<Adaptor,</div><div>                                         <span style="color: #4ec9b0;">boost</span>::<span style="color: #4ec9b0;">beast</span>::ssl_stream<</div><div>                                             <span style="color: #4ec9b0;">boost</span>::<span style="color: #4ec9b0;">asio</span>::<span style="color: #4ec9b0;">ip</span>::<span style="color: #4ec9b0;">tcp</span>::socket>>)</div><div>            {</div><div>                <span style="color: #4ec9b0;">boost</span>::<span style="color: #4ec9b0;">system</span>::error_code ec;</div><div>                <span style="color: #569cd6;">auto</span> remoteEnd = <span style="color: #9cdcfe;">adaptor</span>.<span style="color: #dcdcaa;">next_layer</span>().<span style="color: #dcdcaa;">remote_endpoint</span>(ec);</div><div>                <span style="color: #c586c0;">if</span> (!ec)</div><div>                {</div><div>                    <span style="color: #9cdcfe;">req</span>-><span style="color: #9cdcfe;">remoteIp</span> = <span style="color: #9cdcfe;">remoteEnd</span>.<span style="color: #dcdcaa;">address</span>().<span style="color: #dcdcaa;">to_string</span>();</div><div>                }</div><div>            }</div><div>            <span style="color: #c586c0;">else</span></div><div>            {</div><div>                <span style="color: #4ec9b0;">boost</span>::<span style="color: #4ec9b0;">system</span>::error_code ec;</div><div>                <span style="color: #569cd6;">auto</span> remoteEnd = <span style="color: #9cdcfe;">adaptor</span>.<span style="color: #dcdcaa;">remote_endpoint</span>(ec);</div><div>                <span style="color: #c586c0;">if</span> (!ec)</div><div>                {</div><div>                    <span style="color: #9cdcfe;">req</span>-><span style="color: #9cdcfe;">remoteIp</span> = <span style="color: #9cdcfe;">remoteEnd</span>.<span style="color: #dcdcaa;">address</span>().<span style="color: #dcdcaa;">to_string</span>();</div><div>                }</div><div>            }</div></div></div><div><br></div><div><span style="font-size: 16px;">Many Thx</span></div><div><span style="font-size: 16px;">Johny</span></div></div><br><br><span title="neteasefooter"><p> </p></span></div><br><br><span title="neteasefooter"><p> </p></span>