()
| 389 | } |
| 390 | |
| 391 | func (e ruleShouldNotBeCatchAllError) Error() string { |
| 392 | return fmt.Sprintf("Rule #%d is matching the hostname '%s', but "+ |
| 393 | "this will match every hostname, meaning the rules which follow it "+ |
| 394 | "will never be triggered.", e.index+1, e.hostname) |
| 395 | } |
| 396 | |
| 397 | func isHTTPService(url *url.URL) bool { |
| 398 | return url.Scheme == "http" || url.Scheme == "https" || url.Scheme == "ws" || url.Scheme == "wss" |
no outgoing calls