12345678910111213141516171819202122 |
- package forwardproxy
- import (
- "fmt"
- "net/http"
- "imuslab.com/zoraxy/mod/auth"
- )
- type ZrFilter struct {
- auth *auth.AuthAgent
- }
- type Handler struct {
- Port int
- }
- func (it ZrFilter) IsAuthorized(w http.ResponseWriter, r *http.Request) bool {
- u, p, ok := r.BasicAuth()
- fmt.Println(u, p, ok)
- return true
- }
|