fix IsValidRelayURL

This commit is contained in:
Yasuhiro Matsumoto
2024-07-29 22:37:28 +09:00
committed by fiatjaf_
parent f3f29950b7
commit 4f71918311
2 changed files with 28 additions and 3 deletions

View File

@@ -14,9 +14,6 @@ func IsValidRelayURL(u string) bool {
if parsed.Scheme != "wss" && parsed.Scheme != "ws" {
return false
}
if len(strings.Split(parsed.Host, ".")) < 2 {
return false
}
return true
}