(username string, password string)
| 42 | } |
| 43 | |
| 44 | func GetBasicAuth(username string, password string) string { |
| 45 | auth := username + ":" + password |
| 46 | return base64.StdEncoding.EncodeToString([]byte(auth)) |
| 47 | } |
| 48 | |
| 49 | func FilterIP(filter string, ip string) (bool, error) { |
| 50 | ipAddr := net.ParseIP(ip) |
no outgoing calls