TL;DR: 'end' is a reserved Lua keyword, and cannot be used as a structure member as in Map.end. Need to change the naming of constants maybe?
http://www.arpalert.org/src/haproxy-lua-api/1.7/index.html#map-class > -- Create and load map > geo = Map.new("geo.map", Map.ip); Now if you want to use the match method 'end', the docs say to use 'Map.end'. This is not legal Lua, because 'end' is a reserved keyword. I see two potential ways forward: a) Map['end'] # works right now, but ugly b) Map.match_end # intent is much clearer -- Robin Hugh Johnson E-Mail : [email protected] Home Page : http://www.orbis-terrarum.net/?l=people.robbat2 ICQ# : 30269588 or 41961639 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

