(scheme string)
| 147 | } |
| 148 | |
| 149 | func validateScheme(scheme string) error { |
| 150 | for _, protocol := range supportedProtocols { |
| 151 | if scheme == protocol { |
| 152 | return nil |
| 153 | } |
| 154 | } |
| 155 | return fmt.Errorf("Currently Cloudflare Tunnel does not support %s protocol.", scheme) |
| 156 | } |
| 157 | |
| 158 | func validateIP(scheme, host, port string) (string, error) { |
| 159 | if scheme == "" { |
no test coverage detected