mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
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
This commit is contained in:
@@ -3113,13 +3113,10 @@ static int reload_config(void)
|
|||||||
struct skinny_device *d;
|
struct skinny_device *d;
|
||||||
int oldport = ntohs(bindaddr.sin_port);
|
int oldport = ntohs(bindaddr.sin_port);
|
||||||
|
|
||||||
#if 0
|
if (gethostname(ourhost, sizeof(ourhost))) {
|
||||||
hp = ast_gethostbyname(ourhost, &ahp);
|
|
||||||
if (!hp) {
|
|
||||||
ast_log(LOG_WARNING, "Unable to get hostname, Skinny disabled\n");
|
ast_log(LOG_WARNING, "Unable to get hostname, Skinny disabled\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
cfg = ast_config_load(config);
|
cfg = ast_config_load(config);
|
||||||
|
|
||||||
/* We *must* have a config file otherwise stop immediately */
|
/* We *must* have a config file otherwise stop immediately */
|
||||||
|
|||||||
Reference in New Issue
Block a user