This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub vcl_recv { | |
| #FASTLY recv | |
| # We don't do other methods | |
| if (req.method != "GET") { | |
| return(error); | |
| } | |
| # Handle IPv4 or IPv6 provided in url path (nothing extraneous allowed, perform basic matching) | |
| if (req.url.path ~ "^/([a-f0-9:.]+)$") { | |
| set client.geo.ip_override = re.group.1; |