diff options
author | Liong Sauw Ming <ming@teluu.com> | 2016-05-20 04:17:00 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2016-05-20 04:17:00 +0000 |
commit | 58d6c60c881d265cee8c5ca5dbaad545ff44e995 (patch) | |
tree | b2bb5a9c72e01491d8dd6bce70d3a4c6c1ab4750 /pjlib-util/src/pjlib-util/cli_telnet.c | |
parent | 2e1173b56db0083559b4bc09e00d27d03dbad8bc (diff) |
Re #1922: Replace IPv4 specific APIs as per Apple's recommendations
https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW27
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5311 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/src/pjlib-util/cli_telnet.c')
-rw-r--r-- | pjlib-util/src/pjlib-util/cli_telnet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjlib-util/src/pjlib-util/cli_telnet.c b/pjlib-util/src/pjlib-util/cli_telnet.c index 16baa7de..c6ce6eff 100644 --- a/pjlib-util/src/pjlib-util/cli_telnet.c +++ b/pjlib-util/src/pjlib-util/cli_telnet.c @@ -1928,7 +1928,8 @@ PJ_DEF(pj_status_t) pj_cli_telnet_get_info(pj_cli_front_end *fe, if (status != PJ_SUCCESS) return status; - pj_strcpy2(&info->ip_address, pj_inet_ntoa(hostip.ipv4.sin_addr)); + pj_sockaddr_print(&hostip, info->buf_, sizeof(info->buf_), 0); + pj_strset2(&info->ip_address, info->buf_); info->port = tfe->cfg.port; |