UPDATE: Add admin relaunch functionality for macOS and Linux, enhance README with new features and usage examples
Build and Release / release (push) Successful in 18s
Build and Release / release (push) Successful in 18s
This commit is contained in:
@@ -26,6 +26,15 @@ func matchURL(url string, list []string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func containsURL(url string, list []string) bool {
|
||||
for _, u := range list {
|
||||
if strings.Contains(url, u) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func cleanHost(h string) string {
|
||||
if idx := strings.LastIndex(h, ":"); idx != -1 {
|
||||
return h[:idx]
|
||||
|
||||
Reference in New Issue
Block a user