Remove leading .

This commit is contained in:
Nick Peng
2018-08-17 23:02:04 +08:00
parent 55e24625c7
commit b6cfa47475

View File

@@ -116,6 +116,11 @@ int config_address(char *value)
if (address == NULL) {
goto errout;
}
/* remove prefix . */
while (*begin == '.') {
begin++;
}
memset(address, 0, sizeof(*address));
len = end - begin;