commit 84811fca278a030be26ff5739dc6e267461fba4c parent 8f97d749fb2a7d518b21ea771a32268aa081abef Author: Naveen Narayanan <zerous@nocebo.space> Date: Sat, 18 Sep 2021 16:55:38 +0200 Parse ip address Diffstat:
M | parser.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/parser.c b/parser.c @@ -312,6 +312,13 @@ constat() static int ipaddr() { + if (!word()) + return 0; + + if (isip(token)) + strcpy(ip, token); + + printf("ipaddr ok: %s\n", ip); return 1; }