mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +00:00
use portable switch_inet_ntop
This commit is contained in:
1 parent
3449e265a0
commit
10d2dd3e73
2 files changed
+2
-2
No files matched your search
@@ -529,7 +529,7 @@ SWITCH_STANDARD_API(gethost_api_function)
|
||||
|
||||
if (he) {
|
||||
memcpy(&sa.sin_addr, he->h_addr, sizeof(struct in_addr));
|
||||
ip = inet_ntop(AF_INET, &sa.sin_addr, buf, sizeof(buf));
|
||||
ip = switch_inet_ntop(AF_INET, &sa.sin_addr, buf, sizeof(buf));
|
||||
stream->write_function(stream, "%s", ip);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user