mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
mod_enum windows fix for last commit
This commit is contained in:
parent
1a58647450
commit
142374eaab
@ -163,7 +163,7 @@ static switch_status_t load_config(void)
|
|||||||
|
|
||||||
done:
|
done:
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
if (!globals.server) {
|
if (!globals.nameserver[0]) {
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
DWORD data_sz;
|
DWORD data_sz;
|
||||||
char* buf;
|
char* buf;
|
||||||
@ -183,7 +183,7 @@ static switch_status_t load_config(void)
|
|||||||
buf[data_sz] = 0;
|
buf[data_sz] = 0;
|
||||||
}
|
}
|
||||||
switch_replace_char(buf, ' ', 0, SWITCH_FALSE); /* only use the first entry ex "192.168.1.1 192.168.1.2" */
|
switch_replace_char(buf, ' ', 0, SWITCH_FALSE); /* only use the first entry ex "192.168.1.1 192.168.1.2" */
|
||||||
globals.server = buf;
|
globals.nameserver[0] = buf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user