diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-06-24 02:56:15 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-06-24 02:56:15 +0000 |
commit | 19c1ac82a488094807ff03f9ca8ee95d906db86e (patch) | |
tree | 60bf2449c1d63ec5161a0020a7a71f766057615a /channels | |
parent | d8cea2c8d4f54b91deb0c4e0b2f82c8fb2853c9b (diff) |
actually get the host's name for the code that needs it (bug #4569)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_skinny.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 6c6d46454..7f96e8fcf 100755 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -3113,13 +3113,10 @@ static int reload_config(void) struct skinny_device *d; int oldport = ntohs(bindaddr.sin_port); -#if 0 - hp = ast_gethostbyname(ourhost, &ahp); - if (!hp) { + if (gethostname(ourhost, sizeof(ourhost))) { ast_log(LOG_WARNING, "Unable to get hostname, Skinny disabled\n"); return 0; } -#endif cfg = ast_config_load(config); /* We *must* have a config file otherwise stop immediately */ |