From b6cfa47475148a89fdc19b05ba4e74060c69a974 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Fri, 17 Aug 2018 23:02:04 +0800 Subject: [PATCH] Remove leading . --- src/conf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/conf.c b/src/conf.c index 06309ae..13ae4a4 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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;