af9ff258b1e82ac892e1b51fda7d2d407b51c9ff
- Implement handleIPRedirect handler that looks up the prefix containing an IP
- Add /ip/{ip} route to routes.go
- Reuse existing GetASInfoForIP database method which returns prefix info
- Redirect to /prefix/<prefix> page with HTTP 303 See Other status
- Handle invalid IPs (400) and IPs with no route (404)
Languages
Go
86.4%
HTML
10.2%
Shell
2.3%
Dockerfile
0.9%
Makefile
0.2%