From d95ee55497593ed09741a1a0dab5abfb4874ebda Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 5 May 2017 13:54:21 -0400 Subject: [PATCH] skip comment address line --- libi2pd_client/AddressBook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd_client/AddressBook.cpp b/libi2pd_client/AddressBook.cpp index 750594a3..58f26ff4 100644 --- a/libi2pd_client/AddressBook.cpp +++ b/libi2pd_client/AddressBook.cpp @@ -355,8 +355,8 @@ namespace client { getline(f, s); - if (!s.length()) - continue; // skip empty line + if (!s.length() || s[0] == '#') + continue; // skip empty or comment line size_t pos = s.find('=');