]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3228 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Tue, 5 Apr 2011 01:55:56 +0000 (20:55 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 5 Apr 2011 01:55:56 +0000 (20:55 -0500)
src/mod/applications/mod_enum/mod_enum.c

index d1bb286857b6c94b1caa76082718ec1558b9e286..043dbab16f46dae8acb8b4f218c7f733ba3661b3 100644 (file)
@@ -164,6 +164,7 @@ static switch_status_t load_config(void)
                                if(buf[data_sz - 1] != 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" */
                                globals.server = buf;
                        }
                }