From 95c1dba176ff1cdf034f2735580bf3ea830940a7 Mon Sep 17 00:00:00 2001 From: sxyoxygen <42184617+sxyoxygen@users.noreply.github.com> Date: Wed, 8 Aug 2018 01:47:19 +0800 Subject: [PATCH] Update utils.c --- src/utils.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils.c b/src/utils.c index ee01e0fd..8fe9b84e 100644 --- a/src/utils.c +++ b/src/utils.c @@ -268,6 +268,13 @@ ss_realloc(void *ptr, size_t new_size) return new; } +int +ss_is_ipv6addr(const char *addr) +{ + return strcmp(addr, ":") > 0; +} + + void usage() {