cleanup
This commit is contained in:
parent
be0f532628
commit
05a68df896
15 changed files with 158 additions and 135 deletions
|
|
@ -18,15 +18,6 @@ func local(h types.CtxHandler) types.CtxHandler {
|
|||
h(ctx)
|
||||
return
|
||||
}
|
||||
//addr, err := netip.ParseAddr(ip)
|
||||
//if err != nil {
|
||||
// ctx.Err(types.ErrForbidden)
|
||||
// return
|
||||
//}
|
||||
//if addr.IsLoopback() {
|
||||
// h(ctx)
|
||||
// return
|
||||
//}
|
||||
ctx.Err(types.ErrForbidden)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue