config: correctly break string for prefix filter
authorHamster Tian <haotia@gmail.com>
Thu, 22 Nov 2018 15:36:14 +0000 (23:36 +0800)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 23 Nov 2018 14:51:43 +0000 (15:51 +0100)
commitae6cf8008e50ba9838a056d78cb6aea405c55b7d
tree885721ebe7923c71e097beb8eaf7ea9661a39967
parent57f639e3b0288c2ec12cdfb8598a182293746a0a
config: correctly break string for prefix filter

This if statement does the following:

1. Copy the value of "config prefix_filter"
2. Break the string at "/"
3. Save the number after / as prefix length
4. Convert the address before / into in6_addr

However the extraneous "=" broke the second step and inet_pton
failed with addresses with mask. This commit removes the = thus
fixes the feature.

Signed-off-by: Tian Hao <haotia@gmail.com>
src/config.c